ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darin Swanson <Darin_Swan...@us.ibm.com>
Subject Re: How do I configure ant for the sources of Thinking in Java's book?
Date Fri, 30 Apr 2004 15:46:40 GMT
Eclipse questions are likely better to be asked in an Eclipse 
forum...check out the Eclipse newsgroups.

Since you neglected to indicate the Eclipse build you are using I will 
give you the easiest solution that is common between all Eclipse builds.
One solution is to include a tools.jar in your ant runtime classpath.
http://www.eclipse.org/eclipse/faq/eclipse-faq.html#users_16

In the Eclipse 3.0 stream, if you have JAVA_HOME set to point to a JDK 
install, this tools.jar will be added to the Ant runtime classpath 
automatically.

HTH
Darins





Gabriel Solari <solari@auto.ucl.ac.be>
04/30/2004 08:26 AM
Please respond to "Ant Users List"
 
        To:     Ant Users List <user@ant.apache.org>
        cc: 
        Subject:        How do I configure ant for the sources of Thinking 
in Java's book?


I have the sources from Thinking in Java's book written by Bruce Eckels 
and I've used the Eclipse editor to run some classes. The question is 
how to include and build the classes that come with these sources inside 
Eclipse?. I've tried to used the External tool from Eclipse but it 
didn't work. The error that I have is

JDK.version.check:
      [javac] Compiling 1 source file
      [javac] BUILD FAILED: file:C:/Program 
Files/eclipse/plugins/Code/c02/build.xml:31: 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

I know that I have to set the CLASSPATH but I don't know how. It is 
clear that Java doesn't recognize the path indicated by the .xml file. 
So, could you explain me which CLASSPATH file update and how must I 
accomplish the task.
Regards,

Gabriel


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message