English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have saved j2sdk1.4.0 in c drive but the real problem is to set the class path using dos environment .please help

2006-10-25 02:23:30 · 2 answers · asked by JACKREX 2 in Computers & Internet Programming & Design

2 answers

Right click on the MyComputer Icon on desktop,
Select properties.Click the advanced tab,
Click the Enviroment variables button,Goto System Variables there
you will find a path variable edit it and add the source path of bin
directory to it and add new env var CLASSPATH,and add source
path of bin directory plus a dot(for representing curr dir).

good luck

2006-10-26 18:07:01 · answer #1 · answered by Anand 3 · 2 0

Its better to use the windows recomended way of setting environmental variables through the control panel.
1) Open up control panel through start/settings/control panel
2) open system
3)Click on "advanced" tab
4) Click the button labelled" environment variables"
5)click "new" button under system variables
6) Enter CLASSPATH for variable name
7)enter the path to the java class in variable value
8)each path can be separated by semicolon

If you insist on using autoexec.bat , then you can use the command SET
like this
SET CLASSPATH=classpath1;classpath2
Checkout this link for more info
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html

2006-10-25 13:10:22 · answer #2 · answered by RajMirage 2 · 1 0

fedest.com, questions and answers