This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
when i try to compile a java file using jdk1.3.1,i get an error message that javac is not recognized as an internal or external command. where am i making mistake. pl.help. thanks.
Marcus Green
arch rival
Rancher
Joined: Sep 14, 1999
Posts: 2813
posted
0
Perhaps javac.exe is not in your path. I recommend you post messages in the relevent forum. Marcus
You are facing this problem, because javac is not in your system classpath. You can put javac and all related utilities by setting the system path. If you are using Windows NT, the steps for the same are, 1) Click on Start Menu --> Settings --> Control Panel 2) In control panel, click on System Icon 3) Click on Environment Tab 4) Click on Path Variable, in the variable lists. 5) Edit the path value by appending in your path of jdk --> bin directory For Eg. if you have installed jdk1.4.0 in your d:\ You will add D:\j2sdk1.4.0\bin;D:\j2sdk1.4.0\lib in your path value textbox.
I hope that this will solve your problem. [ August 29, 2002: Message edited by: Manish Sachdev ]
Regards, Manish
SCJP 1.4
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
posted
0
Let's correct a slight misconception... Note that the classpath and path setting are seperate concepts. The classpath setting does not care about the location of javac. The CLASSPATH setting tells javac or java where to find necessary class files to compile and run java programs. The PATH setting tells the computer where to find necessary program files such as javac and java (and other executables) in order to run various programs.