Back to: Java Tutorials
![](https://notearena.com/wp-content/uploads/2017/06/JavaLearning.png)
How to set JDK path in windows:
Download and install JDK
JDK Download Link : JDK Download
After installing Java, JDK path is set to run the Java program.
To set JDK path temporarily:
1. Copy the path to the directory “bin” in the directory that is Java installed. Such as:
C: \ Program Files \ Java \ jdk1.8.0_102 \ bin
Go to the command prompt and run the following command:
Set path = C: \ Program Files \ Java \ jdk1.8.0_102 \ bin
![](https://notearena.com/wp-content/uploads/2017/06/java_path_temp.jpg)
To set “JDK path” permanently:
> First right click on the “MyComputer / This PC (windows 10)” shortcut in “Desptop” and select “Properties”. Then select “Advanced System Settings”
![](https://notearena.com/wp-content/uploads/2017/06/java_path_main1.jpg)
After selecting “Advanced System Settings”, double click on “Environment Variables”, then click on “path” and go to “Edit” option
![](https://notearena.com/wp-content/uploads/2017/06/java_path_mail2.jpg)
After clicking on “Edit Options”, set the jdk / bin directory in the “Variable Value” text field as follows:
1. Copy the path to the directory up-to “bin” in the directory that is Java installed
![](https://notearena.com/wp-content/uploads/2017/06/java_path_mail3.jpg)
2. Then click on the “path” option and go to “Edit” and paste the copied path with “;”
![](https://notearena.com/wp-content/uploads/2017/06/java_path4.jpg)
Then click on the order> ok> Apply> ok