Setting JAVA_HOME and PATH in Windows

JAVA_HOME dictates to the OS where JDK is installed. PATH maintains a list of directories containing executables.

To set the JAVA_HOME we need to add a system variable as follows:
java home

Now to set the PATH we need to append JAVA bin directory as follows:
path

Now check to verify that variables have been set properly:
java version check

This confirms proper setting of JAVA_HOME and PATH.
Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *