"com.sun.tools.javac.Main is not on the classpath" problem still there.

D

drunken_wizard

Hi!
I am getting this error when i am trying to build jExcel API using ant:

"E:\jexcelapi>ant -buildfile build/build.xml
Buildfile: build\build.xml

init:

xllex:

logger:

jxl:
[javac] Compiling 401 source files to E:\jexcelapi\build\out

BUILD FAILED
E:\jexcelapi\build\build.xml:46: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

Total time: 1 second"

Now i have the following ENV VARS set
JAVA_HOME: C:\Program Files\Java\jdk1.5.0_02
CLASSPATH: C:\Program Files\Java\jdk1.5.0_02\lib\tools.jar
ANT_HOME: E:\Ant\apache-ant-1.6.5-bin\apache-ant-1.6.5

Can someone please explain why, still, am i getting this error?

Thanks.

DW.
 
T

Tris Orendorff

Perhaps JAVA_HOME does not point to the JDK

Now i have the following ENV VARS set
JAVA_HOME: C:\Program Files\Java\jdk1.5.0_02

Perhaps! Try setting JAVA_HOME to the actual folder where javac.exe is
located. Hint: On my computer it is, C:\Program Files\Java\jdk1.5.0_03\bin
..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top