Advertisements

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.
Advertisements

13 Responses to "How to set Path for Java"

nice description very useful for new java users

Like

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

Like

How to set Path for Java « Atul Palandurkar…

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

Like

Thanks a lot for sharing this blog post on JavaPins

Like

Hello,
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. 🙂

Like

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.

Like

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

Like

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.

Like

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

Like

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

Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Advertisements

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

Join 8,907 other followers

Tweets

YouTube

%d bloggers like this: