Compile error : "unable to find javac compiler"

Time:November 30
Hello,
I've got this problem compiling my java project: the error that I get is :
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_05\lib\tools.jar
init:
compile:
[javac] Compiling 9 source files to H:\project\class
BUILD FAILED
H:\project\build.sml:8: Unable to find a javac compiler;
com.sun.tools.Main is not on the classpath.
Perhaps JAVA_HOME does not point to th JDK
I'm using the following product:
In the C:\Program Files\JAVA map are the following maps:
- jdk1.5.0_05
- jre1.5.0_05
the settings in windows:
ANT_HOME C:\java\apache-ant-1.6.5
JAVA_HOME C:\Program Files\Java\jdk1.5.0_05
And I have added ;C:\java\apache-ant-1.6.5\bin; to the PATH
Why doesn't it work ? And more important, How can I fix it ?
Thanks
Nick
Hello,
I've got this problem compiling my java project: the error that I get is :
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_05\lib\tools.jar
init:
compile:
[javac] Compiling 9 source files to H:\project\class
BUILD FAILED
H:\project\build.sml:8: Unable to find a javac compiler;
com.sun.tools.Main is not on the classpath.
Perhaps JAVA_HOME does not point to th JDK
I'm using the following product:
In the C:\Program Files\JAVA map are the following maps:
- jdk1.5.0_05
- jre1.5.0_05
the settings in windows:
ANT_HOME C:\java\apache-ant-1.6.5
JAVA_HOME C:\Program Files\Java\jdk1.5.0_05
And I have added ;C:\java\apache-ant-1.6.5\bin; to the PATH
Why doesn't it work ? And more important, How can I fix it ?
Thanks
Nick