ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Barker <jason.bar...@phonedir.com>
Subject Ant on Mac OS X
Date Tue, 26 Jun 2007 21:18:04 GMT
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@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message