File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Possible problem with Ant 1.6.5 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 "Possible problem with Ant 1.6.5" Watch "Possible problem with Ant 1.6.5" New topic
Author

Possible problem with Ant 1.6.5

Andrew Stallard
Ranch Hand

Joined: Mar 06, 2010
Posts: 33
Every time I build with Ant I get the following error whether the build is successful or not:

/usr/bin/build-classpath: error: Could not find xml-commons-apis Java extension for this JVM
/usr/bin/build-classpath: error: Some specified jars were not found

Does this happen to anybody else and what problems might it lead to?

Thank You for Responding.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

No, I've never seen that happen. What platform are you building on, and if it's Linux, are you using the gcj Java or a "real" java?

It's also possible that the jars didn't install. For example, if you unzipped the Ant download and the disk filled up while in the middle of the extraction process.


Customer surveys are for companies who didn't pay proper attention to begin with.
Andrew Stallard
Ranch Hand

Joined: Mar 06, 2010
Posts: 33
Tim Holloway wrote:No, I've never seen that happen. What platform are you building on, and if it's Linux, are you using the gcj Java or a "real" java?


I use java version 1.6.0_19 from Sun Microsystems. Yes, I use Linux (Red Hat)

It's also possible that the jars didn't install. For example, if you unzipped the Ant download and the disk filled up while in the middle of the extraction process.


I installed Ant using yum. There were no reported errors. Is there a list of jars somewhere at Ant's website? I couldn't find anything like that over there.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

Normally Ant comes self-contained, although you can add extensions. However, Red Hat turned darned near every jarkarta project and quite a few other things into separate RPMS. Which is a bit over-granular for me, but such is life. Yum would have resolved any dependencies.

Check to make sure that you're really running the Sun JVM and not gcj. Use the "java -version" command.
Andrew Stallard
Ranch Hand

Joined: Mar 06, 2010
Posts: 33
Tim Holloway wrote:Normally Ant comes self-contained, although you can add extensions. However, Red Hat turned darned near every jarkarta project and quite a few other things into separate RPMS. Which is a bit over-granular for me, but such is life. Yum would have resolved any dependencies.

Check to make sure that you're really running the Sun JVM and not gcj. Use the "java -version" command.


Yes, I am using the real thing. I installed myself.

java -version // yields

java version "1.6.0_19"
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

Oh, wait. I just read that message a little closer.

Apparently you're using one of the Ant extensions. There's a table on the Ant website that lists additional jars needed by the different extensions.

Last time I looked at it, it wasn't the clearest indication I'd ever seen, but it was sufficient.

I think you probably do need to install the xml-commons jar. If you're lucky it's Yum-installable. If not, download it and place it in your ANT_HOME/lib directory.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Possible problem with Ant 1.6.5