How to use keytool in Oracle JDK 7 in ubuntu?

10,903

Solution 1

You can use keytool by doing this:

cd /usr/lib/jvm/jdk1.7.0/bin
./keytool -v -list -alias alias_name -keystore my-release-key.keystore

Keytool is not in your path by default, but it does not have to be in your path to be usable.

Solution 2

Looks like your jdk installation has problems.

Check to see if you have any environment variables or path entries that are pointing to the wrong version of the JDK.

Share:
10,903
aman.nepid
Author by

aman.nepid

Designer Heart ... Developer Mind

Updated on June 04, 2022

Comments

  • aman.nepid
    aman.nepid almost 2 years

    I need a MD5 certificate to use in MapView in android. I have JDK 7 from Oracle installed. But running

    keytool -v -list -alias alias_name -keystore my-release-key.keystore
    

    is not giving me the result, instead it says to install openjdk. How to use the keytool in oracle jdk 7. And i am on ubuntu 12.04 64 bit.