Re: NoClassDefFound and Xcode
Re: NoClassDefFound and Xcode
- Subject: Re: NoClassDefFound and Xcode
- From: Art Isbell <email@hidden>
- Date: Tue, 9 Mar 2004 10:50:43 -1000
On Mar 9, 2004, at 1:44 AM, Kranthi Sagar Borra wrote:
Even I faced a similar problem. I compiled and built my application
on panther and xcode and deployed the build on jaguar(10.2.x) . Its
starting properly from the monitor but when I run the build, it is
giving me a classNot Found Exception . No problem comes when I compile
and build the application in jaguar and project builder and uploade it
into a jaguar machine. Does anyone have an idea about why this is
happening.
A built WO app includes various classpath files in its MacOS, Windows,
and UNIX directories. These files include a reference to a specific
Java version. For Jaguar, the Java version referenced is 1.3.1; for
Panther, it's 1.4.1. So when you move an app built under Panther to a
Jaguar system or vice-versa, the Java version referenced may not be
appropriate.
The "Current" link in the JavaVM framework points to 1.3.1 in Jaguar
and 1.4.1 in Panther. This link leads to appropriate versions of the
Java jars used by WO apps.
The Java executables in /usr/bin under OS X are links to the 1.3.1
executables in Jaguar and 1.4.1 executables in Panther.
So I think a mismatch between Java versions causes the NoClassDefFound
exception. I have managed to modify the references in a built app
successfully, but actually building the app under the Java version
under which it will be deployed is probably safer.
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.