I am getting following error when try to run the above command '"Program Files\java\jdk1.5.0_22\bin>keytool -genkey -keystore myStore -keyalgRSA"' is not recognised as an internal or external command,operable program or batch file.
This is quite obvious from the command you are attempting to run:
"Program Files\java\jdk1.5.0_22\bin>keytool -genkey -keystore myStore -keyalgRSA"
which is hardly a valid executable. Use quotes only to reference the executable:
"C:\Program Files\java\jdk1.5.0_22\bin\keytool.exe" -genkey -keystore myStore -keyalgRSA
- Go to command line (
cmd
) in windows (that's pretty obvious). - Type this
C:\Program Files\java\jdk1.5.0_22\bin>keytool -genkey -keystore myStore -keyalg RSA
(see, I removed the quote)`.
Or enclose everything with quotes (and remove the >
):
"C:\Program Files\java\jdk1.5.0_22\bin>keytool -genkey -keystore myStore -keyalg RSA”
Alternatively, use Vineet Reynolds' advice. :-)
精彩评论