• 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: merging jar files in Xcode 1.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: merging jar files in Xcode 1.5


  • Subject: Re: merging jar files in Xcode 1.5
  • From: Niels Meersschaert <email@hidden>
  • Date: Mon, 14 Mar 2005 21:52:33 -0500

I'm not sure how Xcode handles including jar files in your final jar... but if it's just using the standard jar command, what you're trying to do won't work. In order to include the classes from another jar with your classes & package them in a single jar, you'd need to unpack the library jar into it's classes and then pack those with your classes into the final jar. The alternate approach would be to modify your manifest to point to the associated library jar file. The downside would be 2 resource requests made by the browser instead of just one.

On Mar 14, 2005, at 4:56 PM, Chris Goedde wrote:

Hi all,

This seems to be a faq, but the solution I found in the archives doesn't work for me, so I have to ask. I'm relatively new to Java and Xcode. I'm using Xcode 1.5.

I have a working applet (note, applet, not application) that I'm currently modifying to place the base classes in their own package. My problem is merging the jar file that holds the classes that make up this package into the final jar file for the applet.

I've added the jar file for the package to my project, and in the "Frameworks & Libraries" pane of the target I've clicked the "Merge" checkbox for that jar file. The project compiles successfully, but I get a "java.lang.NoClassDefFoundError" message when the applet runs. Running "jar tvf" from the command line verifies that the classes in my package aren't included in the applet's jar file.

I've been googling and searching for a while, but I'm still stuck over something that seems quite trivial. Any help would be greatly appreciated.

-- Chris Goedde


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >merging jar files in Xcode 1.5 (From: Chris Goedde <email@hidden>)

  • Prev by Date: debugging & variable updates
  • Next by Date: Re: Linking can't find library in Deployment build
  • Previous by thread: merging jar files in Xcode 1.5
  • Next by thread: Re: merging jar files in Xcode 1.5
  • Index(es):
    • Date
    • Thread