wood burning stoves 2.0*
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 Android Security Essentials Live Lessons 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
Author

Ant build error

Neo Wills
Ranch Hand

Joined: Nov 29, 2006
Posts: 40
Hi,

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/.



Neo.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15962
    
  19

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
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

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
 
jQuery in Action, 2nd edition
 
subject: Ant build error
 
Similar Threads
java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/B2CConverter
Juint task in Ant
Weblogic 8.1.3 Custom Identity Asserter
please help me out "Compiler Adapter 'javac' can't be found"
issue regarding running SVN checkout from ANT script