• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NoClassDefFound and Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • WOFileUpload problem
      • From: John Andersson <email@hidden>
  • Prev by Date: Whats the recommended way for cross-object information inquiry?
  • Next by Date: Inserting/Deleting Records From Within EOGenericRecord
  • Previous by thread: RE: NoClassDefFound and Xcode
  • Next by thread: WOFileUpload problem
  • Index(es):
    • Date
    • Thread