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\runtime\jre\lib>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)\Java\jre6\bin
) Despite this, the command line will not recognise the keytool
command.
I'm assuming that there are two separated commands mentioned in the doc:
C:\CFusionMX\runtime\jre\lib>keytool -list -storepass changeit -noprompt -keystore
C:\CFusionMX\runtime\jre\lib\security\cacerts
EDIT:
By the way can I use the following process instead of complex steps mentioned in the answer?
Then I clicked on "Install Certificate" option
A Certificate Import Wizard window opened, I clicked on Next I saw two options
I decided to select option (b)
, but I'm confused which certificate store I should select here.
all you have to do is go to environment variables, click PATH to make it active, then click edit, then add complete path where your keytool is, for me i will add C:\Program Files\Java\jre7\bin this will allow you to execute keytool commands without going to the directory where keytool is installed.
To verify that the keytool utility is available (For Microsoft Windows) Type keytool.exe and press Enter. (For UNIX) Type keytool and press Enter. You can use the keytool utility from Oracle JDK Java 1.5 or 1.6.
I found that only keytool -list -v -alias androiddebugkey -keystore %USERPROFILE%\. android\debug. keystore worked for me.
Add your JDK's /bin folder to the PATH
environmental variable. You can do this under System settings > Environmental variables, or via CLI:
set PATH=%PATH%;C:\Program Files\Java\jdk1.7.0_80\bin
Close and reopen your CLI window
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With