pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

Keytool 未被識別為內(nèi)部或外部命令

Keytool is not recognized as an internal or external command(Keytool 未被識別為內(nèi)部或外部命令)
本文介紹了Keytool 未被識別為內(nèi)部或外部命令的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我正在嘗試使用 本文中的說明.當(dāng)我輸入以下命令時:

C:ColdFusion8
untimejrelib>keytool -list -storepass changeit -noprompt -keystore

我收到以下錯誤:

<塊引用>

'keytool' 不是內(nèi)部或外部命令、可運行程序或批處理文件.

我檢查了包含我的 keytool 可執(zhí)行文件的目錄是否在路徑中.(在我的 Windows 7 機器上,它位于 C:Program Files (x86)Javajre6in)盡管如此,命令行將無法識別 keytool 命令.

我假設(shè)文檔中提到了兩個單獨的命令:

  1. C:CFusionMX untimejrelib>keytool -list -storepass changeit -noprompt -keystore

  2. C:CFusionMX untimejrelibsecuritycacerts

順便說一句,我可以使用以下過程而不是答案中提到的復(fù)雜步驟嗎?

  1. 當(dāng)我在瀏覽器中打開 WSDL 時,我看到了 Lock 圖標,當(dāng)我點擊它時會打開一個證書"窗口
  2. 然后我點擊安裝證書"選項

  3. 打開了一個證書導(dǎo)入向?qū)Т翱冢尹c擊了下一步,我看到了兩個選項

    • a) 根據(jù)證書類型自動選擇證書存儲(此選項是自動選擇的)
    • b) 將所有證書放在以下存儲中

我決定選擇選項 (b),但我很困惑我應(yīng)該在這里選擇哪個證書存儲.

解決方案

你得到這個錯誤是因為 keytool 可執(zhí)行文件在 bin 目錄下,而不是 >lib 目錄在您的示例中.您還需要在命令行中添加 keystore 的位置.這里有一個很好的參考 - Jrun幫助/導(dǎo)入證書 |證書存儲 |冷融合

<塊引用>

默認信任庫是 JRE 的 cacerts 文件.該文件通常位于以下位置:

  • 服務(wù)器配置:

    cf_root/runtime/jre/lib/security/cacerts

  • JRun 4 配置上的多服務(wù)器/J2EE:

    jrun_root/jre/lib/security/cacerts

  • Sun JDK 安裝:

    jdk_root/jre/lib/security/cacerts

  • 查閱其他 J2EE 應(yīng)用服務(wù)器和 JVM 的文檔

<小時><塊引用>

keytool 是 Java SDK 的一部分,可以在以下位置找到:

  • 服務(wù)器配置:

    cf_root/runtime/bin/keytool

  • JRun 4 配置上的多服務(wù)器/J2EE:

    jrun_root/jre/bin/keytool

  • Sun JDK 安裝:

    jdk_root/bin/keytool

  • 查閱其他 J2EE 應(yīng)用服務(wù)器和 JVM 的文檔

因此,如果您導(dǎo)航到 keytool 可執(zhí)行文件所在的目錄,您的命令行將如下所示:

keytool -list -v -keystore JAVA_HOMEjrelibsecuritycacert -storepass changeit

您需要提供路徑信息,具體取決于您運行 keytool 命令的位置以及證書文件所在的位置.

另外,請確保您正在更新 ColdFusion 正在使用的正確 cacerts 文件.如果您在該服務(wù)器上安裝了多個 JRE.您可以在系統(tǒng)信息"下從管理員那里驗證 JRE ColdFusion 是否正在使用.查找 Java Home 行.

I am trying to discover the list of trusted authorities in my Java Runtime using the instructions in this article. When I typed the command below:

C:ColdFusion8
untimejrelib>keytool -list -storepass changeit -noprompt -keystore

I got the following error:

'keytool' is not recognized as an internal or external command, operable program or batch file.

I checked that the directory containing my keytool executable is in the path. (On my Windows 7 machine, it's in C:Program Files (x86)Javajre6in) Despite this, the command line will not recognise the keytool command.

I'm assuming that there are two separated commands mentioned in the doc:

  1. C:CFusionMX untimejrelib>keytool -list -storepass changeit -noprompt -keystore

  2. C:CFusionMX untimejrelibsecuritycacerts

EDIT:

By the way can I use the following process instead of complex steps mentioned in the answer?

  1. When I opened the WSDL into my browser, I saw the Lock icon, when I clicked on it a "Certificate" window opened
  2. Then I clicked on "Install Certificate" option

  3. A Certificate Import Wizard window opened, I clicked on Next I saw two options

    • a) Automatically select the certificate store based on the type of certificate (this option was selected automatically)
    • b) Place all certificates in the following store

I decided to select option (b), but I'm confused which certificate store I should select here.

解決方案

You are getting that error because the keytool executable is under the bin directory, not the lib directory in your example. And you will need to add the location of your keystore as well in the command line. There is a pretty good reference to all of this here - Jrun Help / Import certificates | Certificate stores | ColdFusion

The default truststore is the JRE's cacerts file. This file is typically located in the following places:

  • Server Configuration:

    cf_root/runtime/jre/lib/security/cacerts

  • Multiserver/J2EE on JRun 4 Configuration:

    jrun_root/jre/lib/security/cacerts

  • Sun JDK installation:

    jdk_root/jre/lib/security/cacerts

  • Consult documentation for other J2EE application servers and JVMs


The keytool is part of the Java SDK and can be found in the following places:

  • Server Configuration:

    cf_root/runtime/bin/keytool

  • Multiserver/J2EE on JRun 4 Configuration:

    jrun_root/jre/bin/keytool

  • Sun JDK installation:

    jdk_root/bin/keytool

  • Consult documentation for other J2EE application servers and JVMs

So if you navigate to the directory where the keytool executable is located your command line would look something like this:

keytool -list -v -keystore JAVA_HOMEjrelibsecuritycacert -storepass changeit

You will need to supply pathing information depending on where you run the keytool command from and where your certificate file resides.

Also, be sure you are updating the correct cacerts file that ColdFusion is using. In case you have more than one JRE installed on that server. You can verify the JRE ColdFusion is using from the administrator under the 'System Information'. Look for the Java Home line.

這篇關(guān)于Keytool 未被識別為內(nèi)部或外部命令的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

How to wrap text around components in a JTextPane?(如何在 JTextPane 中的組件周圍環(huán)繞文本?)
MyBatis, how to get the auto generated key of an insert? [MySql](MyBatis,如何獲取插入的自動生成密鑰?[MySql])
Inserting to Oracle Nested Table in Java(在 Java 中插入 Oracle 嵌套表)
Java: How to insert CLOB into oracle database(Java:如何將 CLOB 插入 oracle 數(shù)據(jù)庫)
Why does Spring-data-jdbc not save my Car object?(為什么 Spring-data-jdbc 不保存我的 Car 對象?)
Use threading to process file chunk by chunk(使用線程逐塊處理文件)
主站蜘蛛池模板: 回转窑-水泥|石灰|冶金-巩义市瑞光金属制品有限责任公司 | 开云(中国)Kaiyun·官方网站 - 登录入口 | 高压无油空压机_无油水润滑空压机_水润滑无油螺杆空压机_无油空压机厂家-科普柯超滤(广东)节能科技有限公司 | 冷镦机-多工位冷镦机-高速冷镦机厂家-温州金诺机械设备制造有限公司 | 【直乐】河北石家庄脊柱侧弯医院_治疗椎间盘突出哪家医院好_骨科脊柱外科专业医院_治疗抽动症/关节病骨伤权威医院|排行-直乐矫形中医医院 | 电气控制系统集成商-PLC控制柜变频控制柜-非标自动化定制-电气控制柜成套-NIDEC CT变频器-威肯自动化控制 | 讲师宝经纪-专业培训机构师资供应商_培训机构找讲师、培训师、讲师经纪就上讲师宝经纪 | 至顶网| 贝朗斯动力商城(BRCPOWER.COM) - 买叉车蓄电池上贝朗斯商城,价格更超值,品质有保障! | 不锈钢反应釜,不锈钢反应釜厂家-价格-威海鑫泰化工机械有限公司 不干胶标签-不干胶贴纸-不干胶标签定制-不干胶标签印刷厂-弗雷曼纸业(苏州)有限公司 | 玉米深加工设备|玉米加工机械|玉米加工设备|玉米深加工机械-河南成立粮油机械有限公司 | 铝单板_铝窗花_铝单板厂家_氟碳包柱铝单板批发价格-佛山科阳金属 | 郑州宣传片拍摄-TVC广告片拍摄-微电影短视频制作-河南优柿文化传媒有限公司 | 安全光栅|射频导纳物位开关|音叉料位计|雷达液位计|两级跑偏开关|双向拉绳开关-山东卓信机械有限公司 | 安平县鑫川金属丝网制品有限公司,声屏障,高速声屏障,百叶孔声屏障,大弧形声屏障,凹凸穿孔声屏障,铁路声屏障,顶部弧形声屏障,玻璃钢吸音板 | 一级建造师培训_一建培训机构_中建云筑建造师培训网校 | 谷梁科技| 通用磨耗试验机-QUV耐候试验机|久宏实业百科 | 喷涂流水线,涂装流水线,喷漆流水线-山东天意设备科技有限公司 | 电池挤压试验机-自行车喷淋-车辆碾压试验装置-深圳德迈盛测控设备有限公司 | 杭州|上海贴标机-百科| 电动葫芦|防爆钢丝绳电动葫芦|手拉葫芦-保定大力起重葫芦有限公司 | 广东健伦体育发展有限公司-体育工程配套及销售运动器材的体育用品服务商 | 【孔氏陶粒】建筑回填陶粒-南京/合肥/武汉/郑州/重庆/成都/杭州陶粒厂家 | 自动气象站_农业气象站_超声波气象站_防爆气象站-山东万象环境科技有限公司 | 珠海白蚁防治_珠海灭鼠_珠海杀虫灭鼠_珠海灭蟑螂_珠海酒店消杀_珠海工厂杀虫灭鼠_立净虫控防治服务有限公司 | LCD3D打印机|教育|桌面|光固化|FDM3D打印机|3D打印设备-广州造维科技有限公司 | 佛山市钱丰金属不锈钢蜂窝板定制厂家|不锈钢装饰线条|不锈钢屏风| 电梯装饰板|不锈钢蜂窝板不锈钢工艺板材厂家佛山市钱丰金属制品有限公司 | 涡街流量计_LUGB智能管道式高温防爆蒸汽温压补偿计量表-江苏凯铭仪表有限公司 | 123悬赏网_发布悬赏任务_广告任务平台 | 组织研磨机-高通量组织研磨仪-实验室多样品组织研磨机-东方天净 传递窗_超净|洁净工作台_高效过滤器-传递窗厂家广州梓净公司 | UV-1800紫外光度计-紫外可见光度计厂家-翱艺仪器(上海)有限公司 | 纯水设备_苏州皙全超纯水设备水处理设备生产厂家 | 自动售货机_无人售货机_专业的自动售货机运营商_免费投放售货机-广州富宏主官网 | 上海乾拓贸易有限公司-日本SMC电磁阀_德国FESTO电磁阀_德国FESTO气缸 | 海水晶,海水素,海水晶价格-潍坊滨海经济开发区强隆海水晶厂 | 真空粉体取样阀,电动楔式闸阀,电动针型阀-耐苛尔(上海)自动化仪表有限公司 | 印刷人才网 印刷、包装、造纸,中国80%的印刷企业人才招聘选印刷人才网! | 压缩空气冷冻式干燥机_吸附式干燥机_吸干机_沪盛冷干机 | 变位机,焊接变位机,焊接变位器,小型变位机,小型焊接变位机-济南上弘机电设备有限公司 | 旋转/数显粘度计-运动粘度测定仪-上海平轩科学仪器 |