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:
- Create a Java project.
- Copy the JAR file into the Java project.
- Set up the Java build path of the Java project to contain this JAR file.
- Open the dependency editor from the module or library.
- 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.
- 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.
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21456801