How to get Keystore Alias for android



To get the Key Alias:

1.  Copy keytool.exe and my Keystore file into C:\Program Files\Java\jdk1.7.0_71\bin folder. 

2. Then from command prompt I wrote: keytool -list -v -keystore <name>.keystore 

3. It will also ask for Keystore password then.

4. After putting correct password; it will show you the key alias and Certificate fingerprints and other info.


To get theJava Path: 


  1. run
    which java
  2. if that gives you something like /usr/bin/java, which is a symbolic link to the real location, run
    ls -l `which java`
    On my system, this outputs
    /usr/bin/java -> /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/java
    and therefrom you can read the Java home directory;
  3. if usr/bin/java points to another symbolic link, recursively apply the same approach with
    ls -l <whatever the /usr/bin/java symlink points to>

Comments

Popular Posts