Keytool 应用程序在哪里?
我需要在android中使用mapview控件,但我似乎不明白如何运行keytool
。 是用eclipse安装的吗?我好像找不到下载链接。
谢谢
I need to use mapview control in android and I can't seem to understand how to run keytool
.
Is it installed with eclipse? I can't seem to find a download link.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(10)
keytool
是标准 java 发行版的一部分。中找到 jdk,
在 Windows 64 位计算机中,您通常会在
C:\Program Files\Java\jdk1.8.0_121\bin
它用于管理您可以用来签名的密钥和证书,在你的情况下,可能是一个 jar 文件。
如果您提供有关您需要做什么的更多详细信息,我们可能会给您更具体的答案。
keytool
is part of the standard java distribution.In a windows 64-bit machine, you would normally find the jdk at
C:\Program Files\Java\jdk1.8.0_121\bin
It is used for managing keys and certificates you can sign things with, in your case, probably a jar file.
If you provide more details of what you need to do, we could probably give you a more specific answer.
keytool
是一个管理(公共/私有)安全密钥和证书并将其存储在Java KeyStore
文件 (stored_file_name.jks) 中的工具。它随任何标准
JDK
/JRE
发行版一起提供。您可以在以下文件夹
%JAVA_HOME%\bin
下找到它。keytool
is a tool to manage (public/private) security keys and certificates and store them in aJava KeyStore
file (stored_file_name.jks).It is provided with any standard
JDK
/JRE
distributions.You can find it under the following folder
%JAVA_HOME%\bin
.对我来说,它位于 c/Program Files/Java/jdk1.7.0_25/bin (Windows 8) 中。这个问题的一个更通用的答案是,它很可能位于安装 jdk 的 bin 子目录中。
For me it turned out to be in c/Program Files/Java/jdk1.7.0_25/bin (Windows 8). A more general answer to this question is that it will most likely be in the bin sub directory of wherever your jdk is installed.
如果您使用的是 Mac...keytool 是 Java SDK 的一部分,可以在以下位置找到 /System/Library/Java/JavaVirtualMachines/[VERSION].jdk/Contents/Home/bin/keytool
If you are working with a Mac... the keytool is part of the Java SDK and can be found in the following location /System/Library/Java/JavaVirtualMachines/[VERSION].jdk/Contents/Home/bin/keytool
这里:
C:\Program Files\Java\jre7\bin
它是一个exe keytool.exe
here:
C:\Program Files\Java\jre7\bin
it is an exe keytool.exe
它位于路径/to/jdk/bin 中。
确保定义了 $JAVA_HOME,并将 $JAVA_HOME/bin 添加到 $PATH,否则调用时将无法识别 'keytool' 命令。
It is in path/to/jdk/bin.
Make sure that $JAVA_HOME is defined, and $JAVA_HOME/bin is added to $PATH, or else the 'keytool' command won't be recognized when called.
如果您在 Windows 中安装了 Android,您还可以在这里找到它:
C:\Program Files\Android\jdk\microsoft_dist_openjdk_1.8.0.25\jre\bin
If you have Android installed in windows, you will also find it here:
C:\Program Files\Android\jdk\microsoft_dist_openjdk_1.8.0.25\jre\bin
如果你安装了java,当然keytool就在那里。您需要做的是将其添加到您的 PATH 变量中。
If you have java installed of course keytool is in there. What you need to do is to add it on your PATH variable.
对于 Android Studio 用户
如果您在 Windows 中安装了 Android,您还可以在这里找到它:
C:\Program Files\Android\Android Studio\jre\bin
在环境变量中添加此路径并保存
之后您可以在终端/命令提示符上使用 keytool
For Android Studio users
If you have Android installed in windows, you will also find it here:
C:\Program Files\Android\Android Studio\jre\bin
Add this path in Enviourment variables and save it
After then you can use keytool on your terminal/command prompt