It's not a secret anymore!
The moose likes Beginning Java and the fly likes please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "please help" Watch "please help" New topic

please help

dhriti joshi
Ranch Hand

Joined: Aug 13, 2002
Posts: 82
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.
Marcus Green
arch rival

Joined: Sep 14, 1999
Posts: 2813
Perhaps javac.exe is not in your path. I recommend you post messages in the relevent forum.

SCWCD: Online Course, 50,000+ words and 200+ questions
dhriti joshi
Ranch Hand

Joined: Aug 13, 2002
Posts: 82
which is the related forum.
Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610
moving this to Java in General (Beginner)

[Blog] [Blogroll] [My Reviews] My Linked In
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
You may want to adjust your path setting. Take a look at Part 5 of Sun's instructions on installing the J2SDK.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
M Sharma
Ranch Hand

Joined: Dec 13, 2001
Posts: 106
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
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

Joined: Dec 10, 2001
Posts: 7023
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.
I agree. Here's the link:
subject: please help
It's not a secret anymore!