keytool error command

2019-08-01 16:00发布

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

2条回答
倾城 Initia
2楼-- · 2019-08-01 16:23

Try to quote the path because of the spaces.

查看更多
Juvenile、少年°
3楼-- · 2019-08-01 16:39

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 :)

查看更多
登录 后发表回答