File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Win Xp compile problems help!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Win Xp compile problems help!!" Watch "Win Xp compile problems help!!" New topic

Win Xp compile problems help!!

Mohamed Ali

Joined: Dec 21, 2001
Posts: 3
Hi Eveyone,
I upgraded to windows Xp and I'm having probs compiling with the javac gives me this error message " 'javac' in not recognized as an internal or external command, operable program or batch file. What did was I saved the file again in the jdk1.3.1\bin folder and this time it compiled fine since the javac is in the bin folder...but I need to know why it won't compile from the jdk1.3.1 directory...
this is what I did the first time
c:\jdk1.3.1>javac 'gives the error' I did this the second time
c:\jdk1.3.1\bin>javac ' it compiled
can someone help please!!
thanks in advance
Jim Hall
Ranch Hand

Joined: Nov 29, 2001
Posts: 162
You need to add the java/bin directory to the executable path. Should be able to set this in the Control Panel under System Properties/Environment Variables. I don't have XP so I'm not sure exactly where it is.
Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610
XP will never be part of SCJP I guess
I'm moving this to Java in General (Intermediate)
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform

[Blog] [Blogroll] [My Reviews] My Linked In
I agree. Here's the link:
subject: Win Xp compile problems help!!
It's not a secret anymore!