---
title: "How to set Permanent Path of JDK in Windows"  
description: "For setting the permanent path of JDK, you need to follow these steps:Go to MyComputer properties - advanced tab - environment variables - new tab"  
author: "ANkita gupta"  
published: 2015-05-19  
updated: 2018-02-21  
canonical: https://www.mindstick.com/blog/10889/how-to-set-permanent-path-of-jdk-in-windows  
category: "java"  
tags: ["java"]  
reading_time: 2 minutes  

---

# How to set Permanent Path of JDK in Windows

For setting the [permanent](https://answers.mindstick.com/qa/50600/what-is-a-permanent-storage-in-pc) path of JDK, you need to follow these steps:

- Go to MyComputer [properties](https://www.mindstick.com/articles/23331/nootropics-7-different-types-and-their-unique-properties) -> [advanced](https://www.mindstick.com/articles/12993/5-advanced-features-for-your-odoo-ecommerce-theme) tab -> [environment variables](https://www.mindstick.com/forum/159994/how-to-set-up-and-use-environment-variables-in-a-node-js-application) -> new tab of user variable -> write path in variable name -> write path of bin folder in [variable value](https://www.mindstick.com/interview/23485/exchange-two-integer-variable-value-without-using-third-variable) -> ok -> ok -> ok

##### For Example:

| ## 1) Go to MyComputer properties |
| --- |
| **![how to set path in java](http://www.javatpoint.com/images/path1.JPG)** |
| ##### 2) click on advanced tab |
| **![how to set path in java](http://www.javatpoint.com/images/path2.JPG)** |
| ##### 3) click on environment variables |
| **![how to set path in java](http://www.javatpoint.com/images/path3.JPG)** |
| ##### 4) click on new tab of user variables |
| ![how to set path in java](http://www.javatpoint.com/images/path4.JPG) |
| ##### 5) write path in variable name |
| ![how to set path in java](http://www.javatpoint.com/images/path5.JPG) |
| 6) Copy the path of bin folder |
| ![how to set path in java](http://www.javatpoint.com/images/path6.JPG) |
| ##### 7) paste path of bin folder in variable value |
| ![how to set path in java](http://www.javatpoint.com/images/path7.JPG) |
| ##### 8) click on ok button |
| ![how to set path in java](http://www.javatpoint.com/images/path8.JPG) |
| ##### 9) click on ok button |
| ![how to set path in java](http://www.javatpoint.com/images/path9.JPG) |

Now your permanent path is set.You can now [execute any program](https://www.mindstick.com/forum/276/how-can-i-execute-any-program-in-java-without-main-method) of java from any drive.

---

Original Source: https://www.mindstick.com/blog/10889/how-to-set-permanent-path-of-jdk-in-windows

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
