keytool error command

我是研究僧i 提交于 2019-12-11 08:38:57

问题


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


回答1:


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




回答2:


Try to quote the path because of the spaces.



来源:https://stackoverflow.com/questions/9276102/keytool-error-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!