Reputation: 2828
I want to get MD5 finger print in Android for google map, but when I try to run it in a command window it shows the message below. How do I overcome this problem?
Command Line:
C:\>C:\Program Files\Java\jre6\bin>keytool.exe -list -alias androiddebugkey -key
store C:\Documents and Settings\Saurabh\.android\debug.keystore -storepass andro
id -keypass android
Error:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Upvotes: 1
Views: 3723
Reputation: 51
Check whether the path C:\Documents and Settings\Saurabh contains a folder .android. If not, choose the path that contains .android ( if you dont know where, then if you are using eclipse, go to Window->Preferences->Android->Build and check Default debug keystore path and give that instead of C:\Documents and Settings\Saurabh.android\debug.keystore
running the following code should get you the MD5 fingerprint if you are giving the right debug keystore path... note that there is a '\' before .android which you had missed in the previous posts
C:\Program Files\Java\jre6\bin>keytool -list -alias androiddebugkey -keystore C:\Documents and Settings\Saurabh.android\debug.keystore -storepass andro id -keypass android
Upvotes: 1
Reputation: 8014
use this simple command keytool -list -keystore "C:\Documents and Settings\Saurabh.android\debug.keystore"..
Thats it.. Enter twice..
Upvotes: 1
Reputation: 5985
Use
C:>cd C:\Program Files\Java\jre6\bin
first and then from bin, execute the ketool.exe the command for it is:
keytool -list -alias androiddebugkey -key store C:\Documents and Settings\Saurabh.android\debug.keystore -storepass andro id -keypass android
Upvotes: 2