PDA

View Full Version : Using ant



jhouse5266534
May 7th, 2007, 12:10 AM
I downloaded a pre-existing project (sdedit) and tried to compile it with ant. I've never used ant before, but I assume the response of "Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/lib/tools.jar" represents a significant misconfiguration.

I noticed ANT_HOME is not set, but I'm not even sure what I should set it to since I don't have a tools.jar on my system. The closest thing is /usr/share/java/mx4j-tools.jar.

Any tips on how to proceed would be appreciated.

AZzKikR
June 1st, 2007, 03:27 PM
Did you install a JRE or a JDK? AFAIK, a (Sun) JDK always gets shipped with a tools.jar.

Is the error generated by the compiler, or by Ant itself?