简体   繁体   中英

keytool error command

Hi I want to ask about my error when I import Certificate using keytool this the error:

C:\\Program Files (x86)\\Java\\jre6\\lib\\security\\imig.cer -keystore C:\\Program File s (x86)\\Java\\jre6\\lib\\security\\cacerts -storepass changeit keytool error: java.lang.RuntimeException: Usage error, Files is not a legal command

please help my error code in keytool.. Thanks before

The error says that it's trying to interpret Files as a command.

That's because -keystore argument is truncated after space - to just C:\\Program

To avoid truncation please surround the full path with double quotes:

C:\\Program Files (x86)\\Java\\jre6\\lib\\security\\imig.cer -keystore "C:\\Program Files (x86)\\Java\\jre6\\lib\\security\\cacerts" -storepass changeit

If it results in another error - post a separate question :)

由于空格,请尝试引用路径。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM