Help signing app in release mode

I followed this documentation:

https://docs.coronalabs.com/guide/distribution/androidBuild/index.html

I had to paste this in the command line:

keytool -genkey -v -keystore mykeystore.keystore -alias aliasname -keyalg RSA -validity 999999

However I get an error saying:

'keytool' is not recognized as an internal or external command, operable program or batch file.

I searched up that keytool comes with the JDK and I have installed the JDK from here:

http://www.oracle.com/technetwork/java/javase/downloads/index.html

I have no idea what is wrong. I should have keytool since I have the JDK.

Here is the full Command Line:

Microsoft Windows [Version 10.0.10240] (c) 2015 Microsoft Corporation. All rights reserved. C:\Users\Gary\>keytool -genkey -v -keystore com.garygusepapps.wallpaper.keystore -alias com.garygusepapps.wallpaper -keyalg RSA -validity 999999 'keytool' is not recognized as an internal or external command, operable program or batch file. C:\Users\Gary\>

Can someone tell me what I did wrong?

  1. You need to find the keytool.exe executable and put the path it is in in your path variable.

OR

  1. Just run it from the path: c:\folder1\folder2\keytool.exe …

I actually followed your post on this forum topic:

https://forums.coronalabs.com/topic/57164-how-to-publish/

It did the trick.

  1. You need to find the keytool.exe executable and put the path it is in in your path variable.

OR

  1. Just run it from the path: c:\folder1\folder2\keytool.exe …

I actually followed your post on this forum topic:

https://forums.coronalabs.com/topic/57164-how-to-publish/

It did the trick.