File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes installing my java compiler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "installing my java compiler" Watch "installing my java compiler" New topic

installing my java compiler

Terril Douglas

Joined: May 05, 2008
Posts: 11

I have installed my jdk 1.5 and went to system properties because at the cmd i can type java to execute programs but I can't compile my code it tells me the compiler isn't recognized.

I am running XP Professional.

Wirianto Djunaidi
Ranch Hand

Joined: Mar 20, 2001
Posts: 210


Very likely the installer only set the path to the JRE, which is usually:
<root install path>\Java\<jdk-X.X.X>\jre\bin

You need to add the jdk executable path into your path, which is usually:
<root install path>\Java\<jdk-X.X.X>\bin
marc weber

Joined: Aug 31, 2004
Posts: 11343

Welcome to JavaRanch!

Wirianto is correct. You probably need to update your PATH variable. For detailed instructions, see step 5 of Sun's installation instructions for Windows. Let us know if this solves the problem.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Terril Douglas

Joined: May 05, 2008
Posts: 11
Thanks folks, I was going through some docs and I didn't know that everytime you make a change to the env variables you also need to open a new dos window to get the new changes.
I agree. Here's the link:
subject: installing my java compiler
It's not a secret anymore!