IBM Support

Adding a utility JAR file to a project dependency

Question & Answer


Question

When a utility JAR file is needed to develop an application, you cannot add the JAR file to the Java™ build path because the classpath entry will be removed during builds. What is the correct way to add a utility JAR file to a project?

Cause

The information contained in this document has been moved to developerWorks Answers located here. This technote will be archived in 60 days. Please bookmark the new location.

You can use the dependency editor in WebSphere Integration Developer to maintain project dependencies. You should use the dependency editor to add utility JAR files.

Answer

To add a utility JAR file to your project, complete the following steps:

  1. Create a Java project.
  2. Copy the JAR file into the Java project.
  3. Set up the Java build path of the Java project to contain this JAR file.
  4. Open the dependency editor from the module or library.
  5. Add the Java project in the Java section of the dependencies. Do not change the Java dependencies for modules and libraries outside of the dependency editor.
  6. Make sure that the Deploy with module or Deploy with library check box is selected.

For information on how to incorporate utility JAR files into a WebSphere Integration Developer module or library, for use in WebSphere Process Server, see Using binary Jar files with WebSphere Integration Developer and WebSphere Process Server.



For information on how to configure a shared library in the WebSphere Server environment, see Best Practices for using common application files within IBM WebSphere Application Server Version 5.1, 6.0, 6.1 and 7.0.

[{"Product":{"code":"SSQQFK","label":"WebSphere Integration Developer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Dependency Editor","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0.0.5;7.0.0.4;7.0.0.3;7.0.0.2;7.0.0.1;7.0;6.2.0.3;6.2.0.2;6.2.0.1;6.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21456801