views:

761

answers:

2

Hi there,

I'm trying to generate the MD5 fingerprint from the debug.keystore file using keytool.exe in my jdk so I can use google maps in my android project. I've located the keystore file and have moved it into C:\android just to make things easier.

Then in command I type

c:\Program Files\Java\jdk1.5.0_13\bin>keytool -list -alias androiddebugkey -keystore "C:\android\debug.keystore" -storepass android -keypass android

And i keep getting the error

keytool error: java.lang.Exception: Keystore file does not exist: C:\android\debug.keystore

Ive also tried entering the keystore in from its original location rather than moving to c:\android but still get the same error!

Does anyone have any idea why this is happening? Also is there any other way to get this MD5 fingerprint? some program maybe?

Thanks alot.

A: 

You might try adding c:\Program Files\Java\jdk1.5.0_13\bin to your PATH, then running the keytool command from the C:\android directory. That's what I do (more or less -- I have JDK6 and a different directory), and it works fine.

CommonsWare
Sorry but i dont understand what you mean by adding "c:\Program Files\Java\jdk1.5.0_13\bin to your PATH" Could you explain again? sorry for my ignorance
Capsud
Sorry yea i know what you mean. I do add it to my path, I run 'keytool -list -alias androiddebugkey -keystore "C:\android\debug.keystore" -storepass android -keypass android' from the jdk\bin path and still it doesn't work. I think there is something wrong with the debug.keystore file itself.
Capsud
A: 
keytool error: java.lang.Exception: Keystore file does not exist: C:\android\debug.keystore

Tells me that file isn't there like you think it is.

Also, if you are using the Eclipse Android tools, you can export a signed APK file via Eclipse, which might be easier for you than using the command line tools.

mbaird
it's definitely there as i can see it there. the only thing is that the keystore file is set to open with 'notepad' by mistake. i think that cud be the problem. how can i change this or make it forget its association with notepad?
Capsud
i finally got it! very happy
Capsud
Sounds like your file had a .txt extension. Was that the case?
mbaird
the file was actually called debug.keystore.keystore instead of debug.keystore. i had renamed it before and only noticed the problem when i went into the files properties. :)
Capsud