This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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

Win a copy of Head First Android this week in the Android forum!
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: 16897

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
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
It's not a secret anymore!