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