
Alternatively, type SystemPropertiesAdvanced (case insensitive) in the Run (Win+R), and hit Enter.
JAVA_HOME and whose value is the path to the directory where the JDK was installed. After entering these values, press OK.
Path variable.Path to find important programs. If any or all of it is removed, Windows may not be able to function properly. It must be modified to allow Windows to run the JDK. With this in mind ,click the “Edit…” button with the Path variable selected. Add %JAVA_HOME%\\bin; to the beginning of the Path variable.It is better to append at the begining of the line because Oracle’s software used to register their own version of Java in Path - This will cause your version to be ignored if it occurs after Oracle’s declaration.
cmd and pressing Enter.javac -version into the prompt. If it was successful, then the version of the JDK will be printed to the screen.Note: If you have to try again, close the prompt before checking your work. This will force windows to get the new version of Path.