Aatul Palandurkar

How to set Path for Java

Posted on: August 24, 2011

Dear Friends,

If you want to set the path for Java, there are two main types for setting system path for Java which are as follows;

  1. Temporary Path
  2. Permanent Path

For the above two types, the video describes the complete step by step procedure for setting path for Java :

Or you can go through this tutorial :

1. To check path is set or not :
a. Go to Start Menu
b. Go to Run
c. Type “cmd” without quotes to open Command prompt.
d. Get to the root directory say c:/>
e. To check whether the path is already set or not, on command prompt type “javac” without quotes & press enter/return. If the following message appears on the console screen then the path is not set.

f. But if the other message having length nearly equal to half a page then path is set.

2. Temporary Path :

To set the temporary path follow the steps given below;
a. Open Command Prompt.
b. If path is not set &  want to set it temporarily, assume the Java 1.6.0 is installed on your system, type following command on console screen :
And finally the path is set temporarily.
Note : This will work only for the current window, won’t work if you open another window.

3. Permanent Path :

To set the path permanently follow the steps given below;
a. Right Click on “My Computer Icon”.
b. Go to “Properties”.
c. Go to “Advanced” tab.
d. Click on “Environment Variables”.
e. Go to “System Variables”.
f. Find “Path” variable, select it & click “Edit”.
g. Small window will appear. Go to end by simply pressing “End” button & type following path with semicolon ( ; ) as prefix but without quotes;
    “;C:\Program Files\Java\jdk1.6.0\bin
h. Press “OK”, again “OK”, again “OK”.
And finally the path is set permanently.
i. To check whether the path is set or not simply refer details given above in the section 1.

14 Responses to "How to set Path for Java"

stiil showing the same …javac is not recognised can u please help me out


nice description very useful for new java users


i’m beginner to java..
always confuse to set path in java..
thanks for the article..
its really clear for me.. 🙂


How to set Path for Java « Atul Palandurkar…

Thank you for submitting this cool story – Trackback from JavaPins…


Thanks a lot for sharing this blog post on JavaPins


I found this article very descriptive and nicely written. You are doing a good thing to blog on some of the most basic issues which generally java programmers face. Keep it up. 🙂


Interesting video , by the way I have also shared my experience as How to set PATH for Java let me know how do you find it.


Thanks Javin. Sure I will let you know as soon as possible.


Thanks a lot for giving everyone an extremely superb possiblity to read critical reviews from this website. It is always so pleasurable and stuffed with amusement for me personally and my office colleagues to visit your blog the equivalent of three times a week to learn the newest guidance you have. And lastly, I am just usually satisfied with the unique hints served by you. Certain 1 facts in this article are surely the finest we have had.


Hey, I am happy to hear that you like the log contents.


You made some good points there. I did a search on the topic and found most people will agree with your blog.


Comments are closed.

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 13,219 other followers




%d bloggers like this: