GeeCON Prague 2014*
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
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: 16094
    
  21

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: 5835
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant build error