By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,865 Members | 1,717 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,865 IT Pros & Developers. It's quick & easy.

Java using xp giving error

P: 1
Hello Sir My problem is in dos giving error that javac is not recognised.Tell me the steps for debugging.I have already set the CLASSPTH through command line & also set the PATH.But still giving error.Java is installed in the foolowing path->>
C:\Program Files\jdk1.5
I have already set the following classpath in xp (start->Settings->control Panel->system->Environment Variable->click on new button->variable name:CLASSPATH and Variable Value as:
%classpath%;.;C:\Program Files\jdk1.5.0_04\lib;C:\Program Files\jdk1.5.0_04\lib\tools.jar;C:\Program Files\jdk1.5.0_04\lib\dt.jar;E:\java;
Clicked on ok


then after that i go to command promt (Start->Run->cmd->click on ok)
I have set the path as follows-

set path =%PATH%;C:\Program Files\jdk1.5\bin;.;

Still its not working What should I do?

Plz Reply as early as possible
Aug 27 '07 #1
Share this Question
Share on Google+
1 Reply


10K+
P: 13,264
Hello Sir My problem is in dos giving error that javac is not recognised.Tell me the steps for debugging.I have already set the CLASSPTH through command line & also set the PATH.But still giving error.Java is installed in the foolowing path->>
C:\Program Files\jdk1.5
I have already set the following classpath in xp (start->Settings->control Panel->system->Environment Variable->click on new button->variable name:CLASSPATH and Variable Value as:
%classpath%;.;C:\Program Files\jdk1.5.0_04\lib;C:\Program Files\jdk1.5.0_04\lib\tools.jar;C:\Program Files\jdk1.5.0_04\lib\dt.jar;E:\java;
Clicked on ok


then after that i go to command promt (Start->Run->cmd->click on ok)
I have set the path as follows-

set path =%PATH%;C:\Program Files\jdk1.5\bin;.;

Still its not working What should I do?

Plz Reply as early as possible
Add the Java bin directory path to the Windows path envirinment variable and restart your computer after that.

Edit: Moved to Java forum
Aug 27 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.