This opens the Advanced tab of the System Properties dialog:įrom here, select Environment Variables., which opens this dialog: On the search box, type path, then open Edit the system environment variables (Control panel): This step is required on Windows only, as keytool will is automatically installed on /usr/bin on macOS/Linux. In order to run keytool from the command line, you need to add it to your system PATH. Add the keytool folder to your system PATH (on Windows) C:\Program Files\Java\jdk-15.0.1\ on Windows).Ĭongratulations, the Java SDK is now installed on your system. Then follow the installation steps for your system and make a note of where this is installed (e.g. Java SE Download linksĭownload the correct installer ( jdk-15.0.1_windows-圆4_bin.exe on Windows, jdk-15.0.1_osx-圆4_bin.dmg on macOS). Scroll to the bottom, and you'll find download links for Linux, macOS and Windows. This takes you to a page called "Java SE Development Kit 15 Downloads". To install Java, visit the JAVA SE Downloads page. So by installing Java, you'll also have keytool in your system. Keytool is included as part of the Java runtime. If this is not the case, you'll be greeted with this message (on Windows): 'keytool' is not recognized as an internal or external command, 'keytool' is not recognized as an internal or external command, operable program or batch file. However, the commands above will only work if you have keytool already installed on your system, and it is included in your system PATH. Keytool - list - v - alias androiddebugkey - keystore ~/.