For Java content, use Java projects to share the content with your modules. If you are
writing Java code, avoid having shared Java code and external jars in the same project. For shared
external JARs, use a separate java project including all the jars for the application.
Procedure
-
Create Java projects to share Java content with your modules by clicking .
-
For external .jar Java projects, import the files using one of these
methods:
- Drag the .jar file into the Java project.
- Click and browse to the .jar file.
-
Add external .jar files to the Java build path by right-clicking the Java
project, selecting and then selecting the needed .jar files.
-
For Java projects with source code, export a .jar to deploy the shared
library by clicking .
What to do next
Now add the new shared library to an application and deploy the shared library. For more
information, see Associating shared libraries with projects and Deploying shared libraries.