keytool error: java.lang.Exception: Keystore file does not exist

I followed just like a recommended video tutorial..

get sdk from android site and copy to home folder and updates...and type
"keytool -genkey -v -keystore mygamename.keystore -alias mygamename -keyalg RSA -keysize 2048 -validity 10000"

and i type password and my name...etc.....and "y"
and message is ..storing..mygame.. so i thought it is OK.
but there are no keystore file when i checked "keytool -list"

here is message

keytool error: java.lang.Exception: Keystore file does not exist: /Users/park/.keystore
park:~ park$

and i couldn't signing of course..

This make me crazy...I don't know what i've wrong...I use only english keyboard and i use Mac.


  • marplumarplu Member, PRO Posts: 412
    edited December 2013
    Well, you're trying to access the file /Users/park/.keystore. Change the command keytool -list, so that it opens the correct (mygamename.keystore) first, and THEN access the keytool.

    Do this: with terminal, navigate to the folder your own keystore is in (cd [your path])

    Then, once in the right folder, type this: keytool -keystore [yourkeyname].keystore -list

    You have to enter your keystore pass then, and that's it! :)
Sign In or Register to comment.