久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

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

問題描述

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

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

我收到以下錯(cuò)誤:

<塊引用>

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

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

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

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

  2. C:CFusionMX untimejrelibsecuritycacerts

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

  1. 當(dāng)我在瀏覽器中打開 WSDL 時(shí),我看到了 Lock 圖標(biāo),當(dāng)我點(diǎn)擊它時(shí)會(huì)打開一個(gè)證書"窗口
  2. 然后我點(diǎn)擊安裝證書"選項(xiàng)

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

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

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

解決方案

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

<塊引用>

默認(rèn)信任庫是 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 的文檔

<小時(shí)><塊引用>

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

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

另外,請確保您正在更新 ColdFusion 正在使用的正確 cacerts 文件.如果您在該服務(wù)器上安裝了多個(gè) JRE.您可以在系統(tǒng)信息"下從管理員那里驗(yàn)證 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 未被識(shí)別為內(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,如何獲取插入的自動(dòng)生成密鑰?[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(使用線程逐塊處理文件)
主站蜘蛛池模板: 日本在线观看一区 | 精品亚洲一区二区 | 国产性生活| 伊人成人在线视频 | 成人免费毛片嘿嘿连载视频 | 日韩一区二区免费视频 | 久艹视频在线观看 | 欧美日韩免费 | 小sao货撅起屁股扒开c微博 | 日韩精品一二区 | 欧美日本在线观看 | 99精品色| 国产欧美在线播放 | 成人在线视频播放 | 日韩欧美一区在线 | 偷拍一区二区 | 日本精品视频 | 日本理论片午伦夜理片在线观看 | 欧美精品一区在线 | 在线亚洲天堂 | 亚洲无av在线中文字幕 | 鲁鲁鲁鲁鲁鲁鲁777777 | 久久久www成人免费精品 | 性欧美69 | 97精品超碰一区二区三区 | 欧美日韩在线视频观看 | 国产日韩综合 | 激情五月激情综合网 | 欧美一区二区三区在线播放 | 亚洲成人精品在线观看 | 久草免费福利视频 | 成人在线播放视频 | 天天操夜夜| 欧美一区二区三区在线观看 | 国产91免费视频 | 国产成人在线观看免费网站 | 中文在线一区二区 | 国产精品区二区三区日本 | 欧美日韩在线免费 | 怡红院久久 | 成年视频在线观看 |