How to set Environment Variables

 Environment Variables Setup for JAVAC :

 

Step by Step

 

Go to Computer icon right click and select Properties

Java Environment Variables, setting Environment Variables, Environment Variables setup, getallatoneplace

 

 


Now, select the “Advanced system setting”

 Java Environment Variables, setting Environment Variables, Environment Variables setup

 


Go to Advanced tab, click on Environment Variables.

 Java Environment Variables, setting Environment Variables, Environment Variables setup

 


Go to System variables and click “New”

Java Environment Variables, setting Environment Variables, Environment Variables setup

 

In variable name give JAVA_HOME and in variable value give the location of JDK/bin and JRE/bin ending with a’.’

Java Environment Variables, setting Environment Variables, Environment Variables setup

 

Select and copy this jdk bin path

Java Environment Variables, setting Environment Variables, Environment Variables setup

 

 

Paste it here ending with ‘;’  In the variable value it will be like  C:\Program Files\Java\jdk1.8.0_91\bin;C:\Program Files\Java\jdk1.8.0_91\jre\bin;.

Java Environment Variables, setting Environment Variables, Environment Variables setup 

 

Select and copy this jre bin path

Java Environment Variables, setting Environment Variables, Environment Variables setup

 



Paste it here ending with ‘;’ and at ending with ‘.’

Java Environment Variables, setting Environment Variables, Environment Variables setup

 

 


Now, select the ‘Path’ and click edit(if you don’t have the path don’t worry just create by clicking on New)

 Java Environment Variables, setting Environment Variables, Environment Variables setup

 

 

Once again copy this path

Java Environment Variables, setting Environment Variables, Environment Variables setup

 


 

 

Once again copy this path also

Java Environment Variables, setting Environment Variables, Environment Variables setup

 

 

 

Don’t delete anything just,

Paste it here as shown in the image both ending with ‘;’ here no need to put ‘.’ at the end. In variable value it will look like this.

C:\ProgramData\Oracle\Java\javapath;%JAVA%;%JAVA%\bin;%JAVA%\lib;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Java\jdk1.8.0_91\bin;C:\Program Files\Java\jdk1.8.0_91\jre\bin;

Java Environment Variables, setting Environment Variables, Environment Variables setup

 

 

Now click on “ok”

Java Environment Variables, setting Environment Variables, Environment Variables setup

 


Click OK to complete the setting of Environmental Variables.

 Java Environment Variables, setting Environment Variables, Environment Variables setup

 

To check whether it is working go to command prompt and click javac.

 Java Environment Variables, setting Environment Variables, Environment Variables setup

 


If you are seeing this, then you have successfully setup the Environmental Variable path

Java Environment Variables, setting Environment Variables, Environment Variables setup

 

Thank You.

 

 

One thought on “How to set Environment Variables

Leave a Reply