PATH
& CLASSPATH Settings:
PATH:
-
It's
an environment variable used by OS to locate the Software.
-
The
following path you need to configure.
1. Identify Java jdk
in C:\\programs files.
2. Goto bin dir in
jdk.
3. Copy the url.
4. Open ‘Control
Panel\System and Security\System’
5. Click on Advanced
System Settings.
6. Click on
Environment variables.
7. Click on New in
Uer variables to set Path. ( you can use system variables, but system restart
is required to make changes)
8. Enter the
following details:
a.
Variable
Name: PATH
b. Variable Value: C:\Program Files\Java\jdk1.6\bin;
9. Click on Ok.
10. Goto java jdk
folder.
11. Open jre> lib
folder.
12. Search for rt.jar
(runtime jar)
13. Copy the URL. (You
cant copy rt.jar included in the URL)
14. Come back to
Environment variables..
15. Click on New in
user variables to set class path.
16. Enter the following
details:
a.
Variable
Name: CLASSPATH
b. Variable Value: C:\Program
Files\Java\jdk1.6.0_29\jre\lib\rt.jar;
17. Click OK. + OK.
No comments:
Post a Comment