aspose file tools*
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
Author

installing my java compiler

Terril Douglas
Greenhorn

Joined: May 05, 2008
Posts: 11
Hi

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.

Thanks
Wirianto Djunaidi
Ranch Hand

Joined: Mar 20, 2001
Posts: 210

Terril,

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
Sheriff

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
sscce.org
Terril Douglas
Greenhorn

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: installing my java compiler