CSDT BLOG

DISCOVER COLLECTIONS AND BLOGS THAT MATCH YOUR INTERESTS.




Share ⇓




How to Set Java Programming Path in windows operating system?

Bookmark

How to Set Java Programming Path in windows operating system?

Java is one of the most populor programming languages that has conquered the IT world. To keep up with the growing industry, it is important to learn Java and the first step for obvious reasons is installing Java. After the installation, if you want to work with java without any IDE one would need to set the java path. 

Why Do You Set A Java Path?
The path is the most important environment variable of the Java environment which is used to locate the JDK packages that are used to convert the java source code into the machine-readable binary format.

Tools like javac and java can be used by setting the path. When you save your file in the java directory i.e where java is installed, it is not necessary to set a path. But if you are saving your file outside the directory, it is fairly necessary to set the path beforehand.


There are two methods to set the path.
  1. Temporary path
  2. Permanent path
 Temporary path of JDK
 It is very easy to set the temporary path of JDK. Follow the following steps to set the path.
  1. Open the terminal or command prompt
  2. Go to the path where the JDK/bin directory has been saved
  3. Copy the path
  4. Enter the following command in the command prompt
temporary path-how to set java path-edureka

 This will set the temporary path of JDK.

Permanent Path of JDK
To set the permanent path of the JDK on your system, follow the steps below.

  1. Open System settings and go to advanced system settings.permanent path-how to set java path-edureka
  2. Click on the environment variables in the tab.

    permanent path-how to set java path-edureka
  3. Go to user variables and click on new.

    permanent path-how to set java path-edureka
  4. Add the variable name as β€˜path’.
  5. Copy the path of the JDK bin directory.

    permanent path-how to set java path-edureka
  6. Click ok.

0

Our Recent Coment