It would help to know exactly what steps you've tried, and what issues you ran into so we know what you've tried and where you're encountering issues.
Hey Kerri. I went into "Environment Variables" like listed on here:
JAVA_HOME was not listed there by default so I created it under "System Variables" and then pointed it to where I had the "keytool" file I got after I installed Java and the JDK.
After entering: (with my actual app name instead of appname)
"keytool -genkey -v -keystore appname.keystore -alias appname -keyalg RSA -keysize 2048 -validity 10000"
it returned the result:
'keytool' is not recognized as an internal or external command, operable program or batch file.
Since I essentially have no idea what I am doing I am not too sure what other info is useful. Just let me know and I will try to supply anything that might help. Thank you!
1 person found this helpful
First, you shouldn't use the path of the keytool utility -- you need the path of the Java installation instead. That would look something like:
Second, updating JAVA_HOME is not sufficient for you to be able to type "keytool" and have it be recognized; the PATH also needs to be updated. Add the above path + "\bin;" to the front of your PATH variable. It should look something like this:
C:\Program Files\Java\jdk1.8.0_102\bin;<rest of PATH>
Third, you need to close all command prompts; open command prompts won't receive the updated environment variables.
Open a NEW command prompt, and then enter the "keytool" command. It should run and generate your key.
I really appreciate your help and time. My app is on the Play Store now!