If you are running a keytool command
keytool -list -v -keystore C:\Users\arun\.android\debug.keystore -alias androiddebugkey -storepass android
and getting an error
'keytool' is not recognized as an internal or external command
If you are using any other commad like java,javac , etc.. and getting an error " is not recognized as an internal or external command"
you can also use this same steps
you are getting this error because keytool.exe , executable file which exists in the bin directory of your JDK is not added to Path in your Environmental variables. To resolve this issue
1.first we need to find the bin Directory of our jdk
Usually this will be in C:\Program Files\Java\jre1.8.0_221\bin
(jre1.8.0_221 - change this to your latest version , ). you can see keytool.exe file in the bin directory . (If you installed jdk in a different directory Find your Jdk installation folder and use that path.)
2. we need to add this bin directory to PATH in Environment variables
3. Go to Advanced system settings .
I. If you are using windows 10, search for advanced system settings in search bar
II.or go to control panel->system And Security
III.click on system and click advanced system settings in left side
4. Click on environment variables In Advanced system settings
5. Select path and click Edit in Environment variables
6. click New and add your jdk bin path
7.click ok .now you are ready to to go
8. open your command prompt and run the command
keytool -list -v -keystore C:\Users\arun\.android\debug.keystore -alias androiddebugkey -storepass android
and getting an error
'keytool' is not recognized as an internal or external command
If you are using any other commad like java,javac , etc.. and getting an error " is not recognized as an internal or external command"
you can also use this same steps
you are getting this error because keytool.exe , executable file which exists in the bin directory of your JDK is not added to Path in your Environmental variables. To resolve this issue
1.first we need to find the bin Directory of our jdk
Usually this will be in C:\Program Files\Java\jre1.8.0_221\bin
(jre1.8.0_221 - change this to your latest version , ). you can see keytool.exe file in the bin directory . (If you installed jdk in a different directory Find your Jdk installation folder and use that path.)
2. we need to add this bin directory to PATH in Environment variables
3. Go to Advanced system settings .
I. If you are using windows 10, search for advanced system settings in search bar
II.or go to control panel->system And Security
III.click on system and click advanced system settings in left side
4. Click on environment variables In Advanced system settings
5. Select path and click Edit in Environment variables
6. click New and add your jdk bin path
7.click ok .now you are ready to to go
8. open your command prompt and run the command
Comments
Post a Comment