• 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: Using third-party jars on OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using third-party jars on OS X


  • Subject: Re: Using third-party jars on OS X
  • From: Jonathan Rochkind <email@hidden>
  • Date: Thu, 22 Apr 2004 12:16:30 -0500

For _runtime_, everything in /Library/WebObjects/Extensions is automatically added to your CLASSPATH by the WO launch architecture. You don't need to add it to the CLASSPATH manually, it'll be added for you---at run-time.

But that doesn't neccesarily cover compile-time, I'm not sure if it does, perhaps it doesn't. If you need to access the symbols at compile time, and putting it in /Library/WebObjects/Extensions isn't working, then what I would suggest is making a framework out of it. See:
http://developer.apple.com/documentation/WebObjects/PB_for_WO_Developers/


For instructions on how to add a third party JAR to a project. Make a framework project and add your third party JAR. Add that framework to your app the same as you would any other framework. You will have both compile-time and run-time (assuming the framework is deployed properly) access to the classes in the JAR.

--Jonathan

At 12:58 PM -0400 4/22/04, Randall Perry wrote:
Webobjects docs say to put these in /Library/WebObjects/Extensions, except
for JDBC adaptors which belong in /Library/Java/Extensions.

I'm trying this opensource email package. Their instructions for use are:

    To use it, add the JAR file CSEmail.jar to your  CLASSPATH. Then you
    will be able to add import com.coolservlets.email; to your code.

I put the import statement in main.java and placed the jar in
/Library/WebObjects/Extensions and got a 'package does not exist' error.
Tried the jar in /Library/Java/Extensions and got the same error.

What am I missing?

--
Randall Perry
sysTame

Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales

http://www.systame.com/
_______________________________________________
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.
_______________________________________________
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:
    • Re: Using third-party jars on OS X
      • From: Randall Perry <email@hidden>
References: 
 >Using third-party jars on OS X (From: Randall Perry <email@hidden>)

  • Prev by Date: RE: Where to place JDBC adaptor?
  • Next by Date: Anybody develop WO app on Win2K with SQL Server backend
  • Previous by thread: Using third-party jars on OS X
  • Next by thread: Re: Using third-party jars on OS X
  • Index(es):
    • Date
    • Thread