• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse Ant & Mac OS X

 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Usually, to run Ant within eclipse (on a PC), I add tools.jar to the Ant Runtime jar list.

Windows > Preferences > Ant - Runtime

This way I dont have to have a JAVA_HOME variable setup)

Since Mac OS X does not have a tools.jar, what do I add there?
Without adding tools.jar, Ant, throws errors like cannot find java.lang.String etc.
Adding classes.jar instead of tools.jar results in some strange ...major minor version 48.0.... error

Hope someone familiar with using Ant within Eclipse on a Mac OS X platform, would have come across similar issues...
 
Author
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi V,

Are you using any optional or plugin tasks? If not don't add the tools.jar file to the ant runtime. Running java on the mac automatically includes classes.jar and tools.jar on the classpath (tools.jar is unjared and rejared with classes.jar).

I do not add any libraries to the ant run time to get ant to run on my mac running 10.3.4, JDK 1.4.2, Eclipse 3.0 and the embedded version of ant (1.6.1).

Hope this helps!
 
Curse your sudden but inevitable betrayal! And this tiny ad too!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic