Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Third-Party JAR Files

If a project contains JAR files that are not located in a framework against which the project links or that are not located in /Library/WebObjects/Extensions, you must either add the JAR files to an application's class path or merge the JAR files at build time.

To merge JAR files at build time, first add a JAR file to your project and associate it with the aggregate target and at least the Application Server target or the Web Server target (both are possible if the JAR files are used in the client-side application of a Java Client application). Then, from the targets pop-up menu, select the target with which you associated the JAR files and choose Edit Active Target from the Project menu. In the Build Phases group, select Frameworks and Libraries. Select Merge for each JAR file, as shown in Figure 1-4. Make sure to repeat this process for each target with which you associate a JAR file.


Figure 1-2  Merging JAR files

Merging JAR files

Alternatively, you can add JAR files to an application's classpath by providing a colon-separated list of paths to JAR files in a target's OTHER_JAVA_CLASS_PATH build setting. This isn't a default build setting so you have to add it in the expert view setting of a project's target, as Figure 1-3 illustrates.


Figure 1-3  OTHER_JAVA_CLASS_PATH build setting

OTHER_JAVA_CLASS_PATH build setting



< Previous PageNext Page > Hide TOC


Last updated: 2002-12-01




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice