• 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: newbie needs help/advice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie needs help/advice


  • Subject: Re: newbie needs help/advice
  • From: Gavin Eadie <email@hidden>
  • Date: Mon, 20 Jun 2005 10:05:26 -0400

At 7:54 PM -0700 6/19/05, John Watson wrote:
1. Adding external jars to the project.  What is the recommended way
of doing this?  I don't like the merge option (which does work for
me).  Is there a way to get the darn jars to be copied to the
classpath without too much effort?

... there are several options, all of which work.

* the "merge" option -- unjars the classes and rejars them with your classes

[I don't like this either; it binds things far too tightly. Incorporating a bugfix in Jakarta commons.lang, for example, requires rebuilding/redeploying your application]

    * the Java extensions folder -- jars available to EVERYTHING

         [I don't like this for the above reason]

    * the WebObjects extension folder -- /Library/WebObjects/Extensions/

         [better -- this is only used by WebObjects applications]

    * make a framework

[this is my favorite. Making a framework which contains the jar that you need has several advantages. Including that framework in the project ensures compile time requirements are met, I can make only the jars I want available to only the applications I want, and I can bundle up related jars in a framework (for example, I have a JakartaCommon framework with my favorite dozen commons jar files; I have a MailLibrary framework that contains mail.jar, activation.jar and ldap.jar)]


... it is noted in this thread that incorporating jars into applications, or frameworks (including 'jar only' frameworks like I propose) is troublesome. There is a trick to it, which I'll put in another message.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >newbie needs help/advice (From: John Watson <email@hidden>)

  • Prev by Date: Re: newbie needs help/advice
  • Next by Date: Re: When a ssesion is created?
  • Previous by thread: Re: newbie needs help/advice
  • Next by thread: Re: newbie needs help/advice
  • Index(es):
    • Date
    • Thread