Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ant results in NoClassDefFoundError



On Apr 7, 2005 1:06 PM, David Parsons <email@hidden> wrote:
Hi all:

This sounds like such a simple question: what is wrong with my apache-ant setup to result in a NoClassDefFoundError?

...

About my setup (from a clean term!):
Welcome to Darwin!
orthos:~>uname -a; echo $PATH
Darwin orthos.cit.nih.gov 7.8.0 Darwin Kernel Version 7.8.0: Wed Dec 22 14:26:17 PST 2004; root:xnu/xnu-517.11.1.obj~1/RELEASE_PPC  Power Macintosh powerpc
/usr/bin:/bin:/usr/sbin:/sbin:/Users/parsonsd:/Users/parsonsd/bin:/usr/local/ant/bin
orthos:~>echo $JAVA_HOME; which java; java -version
/Library/Java/Home
/usr/bin/java
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-141.4)
Java HotSpot(TM) Client VM (build 1.4.2-38, mixed mode)
orthos:~>echo $ANT_HOME; which ant; ant -version
/usr/local/ant
/usr/local/ant/bin/ant
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
orthos:~>ls -la $ANT_HOME
lrwxr-xr-x  1 root  admin  27  7 Apr 11:48 /usr/local/ant -> /usr/local/apache-ant-1.6.2
orthos:~>/Library/Java/WebServices/apache-ant/bin/ant -version
Apache Ant version 1.5.4 compiled on October 10 2003

Any pointers here?
../dave.


Hi Dave,

I'm not sure if this will help. But here are some suggestions:
- 'echo $CLASSPATH' (just to double check that it is what you think it is)
- check that the ant lib dir contains the necessary JARs
- 'sh -x /usr/local/ant/bin/ant', which would run the ant shell script in debugging mode

--ron


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >ant results in NoClassDefFoundError (From: David Parsons <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.