3

When I write this command in the terminal keytool -list -v -keystore C:\Users\XXXXXXXXXXXXXXXXXXX -alias XXXXXXXX

I get the message:

'keytool' is not recognized as an internal or external command,

operable program or batch file.

What can I do?

aminography
  • 21,986
  • 13
  • 70
  • 74
Ron
  • 399
  • 2
  • 6
  • 22
  • have you setted up the environment variables? – Gopal Singh Sirvi Jun 06 '15 at 10:08
  • I was able to solve the problem but now it write to me: keytool -list [OPTION]... Lists entries in a keystore Options: -storepass keystore password -storetype keystore type -providername provider name -providerclass provider class name -providerarg provider argument – Ron Jun 06 '15 at 10:19
  • Dear Ron, will you please mark my answer as correct if you manage to solve the problem. – Mohamad Al Asmar Oct 13 '16 at 11:58
  • Possible duplicate of [ERROR:'keytool' is not recognized as an internal or external command, operable program or batch file](https://stackoverflow.com/questions/6211919/errorkeytool-is-not-recognized-as-an-internal-or-external-command-operable-p) – Darush Sep 01 '17 at 19:31

1 Answers1

9

Solution: Add android jre bin folder to your path in environment variables.

Instructions:

1- Right click on "This PC" > right-click Properties > Advanced system settings > Environment Variables > select PATH then EDIT.

2- Add your jre bin folder path to environment variables, it should look like this:

"C:\Program Files\Java\jre1.8.0_40\bin".

Mohamad Al Asmar
  • 1,107
  • 1
  • 16
  • 35