java 无法识别 Keytool 命令
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38314658/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Keytool command not recognized
提问by Ahmed azooz
I'm working on Login with Google+ activity and when I write command "Keytool" in Cmd this message appears: "keytool is not recognized as an internal or external command".
我正在使用 Google+ 活动登录,当我在 Cmd 中编写命令“Keytool”时,会出现此消息:“keytool 未被识别为内部或外部命令”。
How do I fix this problem ?
我该如何解决这个问题?
回答by MalcolmMcFly
The Keytool command can only be ran if you have added it to your path or from within the directory where it is located.
Keytool 命令只有在您将它添加到您的路径或从它所在的目录中才能运行。
If you are on Windows, most likely it is located here:
如果您使用的是 Windows,它很可能位于此处:
C:\Program Files\Java\\bin
C:\Program Files\Java\bin
You'll need to either run the keytool command from there, or add the keytool location to your PATH environment variable.
您需要从那里运行 keytool 命令,或者将 keytool 位置添加到您的 PATH 环境变量中。