keytool is not recognized as a command when trying to obtain key

android, android-keystore, cmd, keystore

Solution

It looks like your `%PATH%` - OS environment variable is not configured properly.

You can either:

Call keytool by specifying full path to your `<Java_Home>/bin/keytool.exe` executable file. For me, the path looks like this: `"c:\Program Files (x86)\Java\jdk1.6.0_20\bin\keytool.exe"`

Or,

Correct your `%Path%` variable; by appending `%JAVA_HOME%\bin` to it.

Problem

I am setting up a google maps activity and I am trying to get my API key. However in my cmd I get the error that keytool is not recognized as an internal or external command....ect.... I tried using the solution posted in a similar question but it didn't work for me. My Default dubug keystore ``` C:\Users\Sam\.android\debug.keystore ```

Original source