Last Updated On September 16, 2020
In order to use “keytool” command, please follow the steps bellow:
- Locate JDK bin directory path. For example in my case it is: C:\Program Files\Java\jdk1.8.0_191\bin
- Open a terminal (cmd).
- Append the “path” identified in point (1) to “path” system environment variable. In my case the command should be:
set path=%path%;C:\Program Files\Java\jdk1.8.0_191\bin
- Just use the keytool command
So, at the end:
Wrong command:
C:\Users\j0s3>keytool
Right command:
C:\Users\j0s3>set path=%path%;C:\Program Files\Java\jdk1.8.0_191\bin