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(使用線程逐塊處理文件)
主站蜘蛛池模板: 披萨石_披萨盘_电器家电隔热绵加工定制_佛山市南海区西樵南方综合保温材料厂 | 一体化污水处理设备_生活污水处理设备_全自动加药装置厂家-明基环保 | 无硅导热垫片-碳纤维导热垫片-导热相变材料厂家-东莞市盛元新材料科技有限公司 | 深圳天际源广告-形象堆头,企业文化墙,喷绘,门头招牌设计制作专家 | 特种电缆厂家-硅橡胶耐高温电缆-耐低温补偿导线-安徽万邦特种电缆有限公司 | 拉力机-万能试验机-材料拉伸试验机-电子拉力机-拉力试验机厂家-冲击试验机-苏州皖仪实验仪器有限公司 | 北京发电车出租-发电机租赁公司-柴油发电机厂家 - 北京明旺盛安机电设备有限公司 | 杜甫仪器官网|实验室平行反应器|升降水浴锅|台式低温循环泵 | 乐考网-银行从业_基金从业资格考试_初级/中级会计报名时间_中级经济师 | 展厅设计-展馆设计-专业企业展厅展馆设计公司-昆明华文创意 | 制氮设备-变压吸附制氮设备-制氧设备-杭州聚贤气体设备制造有限公司 | 河南档案架,档案密集架,手动密集架,河南密集架批发/报价 | 慈溪麦田广告公司,提供慈溪广告设计。 | 利浦顿蒸汽发生器厂家-电蒸汽发生器/燃气蒸汽发生器_湖北利浦顿热能科技有限公司官网 | 交联度测试仪-湿漏电流测试仪-双85恒温恒湿试验箱-常州市科迈实验仪器有限公司 | 消电检公司,消电检价格,北京消电检报告-北京设施检测公司-亿杰(北京)消防工程有限公司 | 环压强度试验机-拉链拉力试验机-上海倾技仪器仪表科技有限公司 | 压滤机滤板_厢式_隔膜_板框压滤机滤板厂家价格型号材质-大凯环保 | 塑料检查井_双扣聚氯乙烯增强管_双壁波纹管-河南中盈塑料制品有限公司 | 硫化罐-电加热蒸汽硫化罐生产厂家-山东鑫泰鑫智能装备有限公司 | 聚合氯化铝-碱式氯化铝-聚合硫酸铁-聚氯化铝铁生产厂家多少钱一吨-聚丙烯酰胺价格_河南浩博净水材料有限公司 | 建筑资质代办-建筑资质转让找上海国信启航 | 噪声治理公司-噪音治理专业隔音降噪公司 | 重庆磨床过滤机,重庆纸带过滤机,机床伸缩钣金,重庆机床钣金护罩-重庆达鸿兴精密机械制造有限公司 | 真空干燥烘箱_鼓风干燥箱 _高低温恒温恒湿试验箱_光照二氧化碳恒温培养箱-上海航佩仪器 | 天津热油泵_管道泵_天津高温热油泵-天津市金丰泰机械泵业有限公司【官方网站】 | 防渗土工膜|污水处理防渗膜|垃圾填埋场防渗膜-泰安佳路通工程材料有限公司 | 电子海图系统-电梯检验系统-智慧供热系统开发-商品房预售资金监管系统 | 环氧铁红防锈漆_环氧漆_无溶剂环氧涂料_环氧防腐漆-华川涂料 | 乐考网-银行从业_基金从业资格考试_初级/中级会计报名时间_中级经济师 | 商秀—企业短视频代运营_抖音企业号托管 | 干式磁选机_湿式磁选机_粉体除铁器-潍坊国铭矿山设备有限公司 | 蒸汽热收缩机_蒸汽发生器_塑封机_包膜机_封切收缩机_热收缩包装机_真空机_全自动打包机_捆扎机_封箱机-东莞市中堡智能科技有限公司 | 大倾角皮带机-皮带输送机-螺旋输送机-矿用皮带输送机价格厂家-河南坤威机械 | 多功能真空滤油机_润滑油全自动滤油机_高效真空滤油机价格-重庆润华通驰 | 二手光谱仪维修-德国OBLF光谱仪|进口斯派克光谱仪-热电ARL光谱仪-意大利GNR光谱仪-永晖检测 | 缓蚀除垢剂_循环水阻垢剂_反渗透锅炉阻垢剂_有机硫化物-郑州威大水处理材料有限公司 | 钢格板|镀锌钢格板|热镀锌钢格板|格栅板|钢格板|钢格栅板|热浸锌钢格板|平台钢格板|镀锌钢格栅板|热镀锌钢格栅板|平台钢格栅板|不锈钢钢格栅板 - 专业钢格板厂家 | 渗透仪-直剪仪-三轴仪|苏州昱创百科 | LHH药品稳定性试验箱-BPS系列恒温恒湿箱-意大利超低温冰箱-上海一恒科学仪器有限公司 | 洛阳装修公司-洛阳整装一站式品牌-福尚云宅装饰 |