« Previous Page Next Page »
    


How to set Java path in Environment Variables

POSTED

AUTHOR: VARUN SINGH

To run Java Programe it is very necessary to set path in Environment Varibles. You can run java file using temporary setting the path in Cammand Promt. You can run java programe without setting any path if you saved your file in C:\Program Files\Java\jdk\bin folder.
If you have a java file outside bin folder. Please set the path temporary in Command Prompt or parmanently in Environment Variables.

There are two way to set java path:
Temporary
Parmanently

How to set Temporary Path of JDK in Wondows

To set the temporary path of JDK, you need to follow following steps:

Open Your Command Prompt

Write in Command Prompt: set path=C:\Program Files\Java\jdk\bin

Let's see it in the figure given below:

java path setting

How to set path of JDK Permanently in Windows.

For setting the permanent path of JDK in Windows, you need to follow these steps:

Step 1:

Click on Start Button> Right Click on Computer > Click on Properties

java path setting

Step 2:

Click on Advanced system setting

java path setting

Step 3:

Click on Environment Variables

java path setting

Step 4:

Click on New

java path setting

Step 5:

Here is the Variable path windows will be open.

java path setting

Step 6:

Copy the path of bin folder where JDK installed.

java path setting

Step 7:

Write path in Varible Name Input Box and write C:\Program Files\Java\jdk1.8.0_73\bin in Variable Value Input Box.

java path setting

Step 8:

Use the same process for CLASSPATH
Variable Name: classpath
Variable Value: C:\Program Files\Java\jdk1.8.0_73\lib
Use the same process for JAVA HOME
Variable Name: JAVA_HOME
Variable Value: C:\Program Files\Java\jdk1.8.0_73


The End:

Thank you for reading this article, and if you have any problem, have a another better useful solution about this article, please write message in the comment section. We will be very happy to hear that.

If you like my tutorial, please follow us on facebook, Google + and Twitter. I need your support to continue.


« Previous Page Next Page »

Comments: