Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
drunken_wizard - 17 Mar 2006 13:34 GMT
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.
Tris Orendorff - 23 Mar 2006 02:33 GMT
> 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
.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.