Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Ant on Mac OS X

Ant on Mac OS X

2007-06-26       - By Jason Barker
Reply:     1     2     3  

I have been trying to get Ant working on my Mac. The problem I am  
running into is whenever I type 'ant' from the command line, I get  
the following error:
java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:244)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

I have cleared out my CLASSPATH. Ant is currently installed at: /
Developer/Java/Ant. I have set ANT_HOME to /Developer/Java/Ant. I  
have added $ANT_HOME/bin to my PATH, too. What gives?

I am running 10.4.10. I have tried running 'ant -version' but I still  
get the same error. Can someone clue me in on what I am doing wrong?


Thanks,
Jason

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.