File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant build error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant build error" Watch "Ant build error" New topic

Ant build error

Neo Wills
Ranch Hand

Joined: Nov 29, 2006
Posts: 40

I tried building the 6.0.x tomcat source. From the installation looks like we had to execute "ant download" and then "ant".

Executing "ant download" completed fine. But executing "ant" after it fails with this error:

Any idea if some envt variable is messed up ? The JAVA_HOME path is pointing right at the jdk directory - /usr/lib/jvm/java-6-openjdk/.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

Try using the Sun JDK instead. The open-source versions of Java were not complete implementations, and I'm not sure that even the latest versions of them are complete.

An IDE is no substitute for an Intelligent Developer.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Are you sure JAVA_HOME is set to openjdk? I ask because the missing class appears to be from the gnu implementation of the JVM, which as Tim points out is not complete. So my guess is that it is not openjdk but rather the gnu version of the JVM that is running. Try adding the -v option to the ant command line, it will print out, among other things, the JDK it is using:

ant -v

JBoss In Action
I agree. Here's the link:
subject: Ant build error
jQuery in Action, 3rd edition