Where is the Keytool application?
Asked Answered
R

10

169

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

Rima answered 28/1, 2011 at 15:57 Comment(0)
H
209

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.

Handicraft answered 28/1, 2011 at 15:59 Comment(6)
how can I use it? it is not available from the cmd propmp in windowsRima
Your link points to the Java 1.3 (very old!) documentation. The docs for the Java SE 6 version are here: download.oracle.com/javase/6/docs/technotes/tools/solaris/…Edmea
@Amit if you have the JDK installed and added the bin folder of your JDK to the PATH you should be able to use the keytool.Edmea
Funny, the question is "where", not "what", is keytool... why was this even accepted.Jahdai
@Zoomzoom: Thought the same after ending up here. Edited the question to fix this.Air
Installing entire JDK is not necessary if you need just keytool. It is sufficient to install JRE (Jave Runtime) - it is smaller than JDK (Java Development Kit)Etching
L
206

keytool is a tool to manage (public/private) security keys and certificates and store them in a Java 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.

Limburg answered 28/1, 2011 at 16:1 Comment(5)
$JAVA_HOME/bin for Linux and friendsWoolard
@Limburg When I open keytools.exe it keeps closing.Chickenlivered
It's not meant to be opened, it's a command line tool (and should close as soon as it prints whatever it prints initially).Betancourt
Do not forget the double quotes, depending on your (Windows) configuration : "%JAVA_HOME%\bin\keytool"Saporous
keytool is provided not only in JDK but also in JRE destribution which takes less disk spaceEtching
G
12

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.

Gladiate answered 12/7, 2013 at 4:47 Comment(0)
N
9

keytool it's a binary file into the JDK folder ... just add your JDK as environment variable by adding the following line

C:\Program Files\Java\jdk1.8.0_65\bin
Needs answered 17/6, 2016 at 6:50 Comment(0)
N
6

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

Nakesha answered 9/3, 2014 at 23:14 Comment(0)
C
5

here: C:\Program Files\Java\jre7\bin it is an exe keytool.exe

Condone answered 14/1, 2014 at 14:52 Comment(0)
S
4

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.

Stricture answered 24/10, 2016 at 8:45 Comment(0)
C
3

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

Corps answered 16/2, 2021 at 12:32 Comment(0)
D
2

If you have java installed of course keytool is in there. What you need to do is to add it on your PATH variable.

Downtrend answered 20/3, 2014 at 13:3 Comment(0)
H
2

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

Harvester answered 21/12, 2022 at 15:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.