Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

keytool: command not found

I'm trying to generate an application to put in the play store when I do this command:

Keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

This message is appearing keytool: command not found

Has anyone had this problem?

like image 998
Lucas Santos Avatar asked Jul 22 '17 14:07

Lucas Santos


1 Answers

Change directory to C:\Program Files\Java\jdk1.8.0_66\bin and then run your keytool command.

Or

Set the PATH variable permanently (Windows)

  1. Click Start, then Control Panel, then System.

  2. Click Advanced, then Environment Variables.

  3. Add the location of the bin folder of the JDK installation for the PATH variable in System Variables. The following is a typical value for the PATH variable:

    C:\Program Files\Java\jdk1.8.0_66\bin

like image 91
Swapnil Patwa Avatar answered Oct 13 '22 20:10

Swapnil Patwa