How to set path for Java?
Dear Friends,
If you want to set the path for Java, there are three main steps to set system path for Java which are as follows;
- To check path is set or not.
- Temporary Path
- Permanent Path
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.
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.
Labels: Java
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home