

Open Command Prompt (make sure you Run as administrator so you're able to add a system environment variable).If you would prefer to set the JAVA_HOME (or JRE_HOME) variable via the command line:

Set the JAVA_HOME variable via the command line If the changes don't take effect after reopening the command window, restart Windows. It has everything the JRE has, but also the compiler (javac) and tools (like javadoc and jdb). You'll need to close and re-open any command windows that were open before you made these changes, as there's no way to reload environment variables from an active command prompt. The JDK is the Java Development Kit, the full-featured SDK for Java. In the Variable Value field, enter your JDK or JRE installation path.

Windows 8 – Go to Control Panel > System > Advanced System Settings Windows 7 – Right click My Computer and select Properties > Advanced You can also type where java at the command prompt. If you didn't change the path during installation, it'll be something likeĬ:\Program Files\Eclipse Adoptium\jdk-11.0.17.8-hotspot\ or
