Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Possible problem with Ant 1.6.5

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Saloon Keeper
Posts: 24843
174
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Andrew Stallard
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 24843
174
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 24843
174
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
The problems of the world fade way as you eat a piece of pie. This tiny ad has never known problems:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic