Add JAR Files to Eclipse-based IDEs
Related Topics ...
With Eclipse-based IDEs, any JARs you add to a Factory project's WEB-INF/lib directory, you also need to add to the Designer plug-in's lib directory (eclipse/com.bowstreet.designer.core/lib).
In addition, modify the plugin.xml file in the com.bowstreet.designer.core directory so that it references the new JAR.
To add a new JAR to an Eclipse-based IDE:
- Add a copy of the JAR to a project's WEB-INF/lib or WEB-INF/clientLibs directory.
We can also add a jar to the WEB-INF/work/lib directory if you want the jar to be dynamically loaded by the Factory. This is convenient during development.
- Add a copy of the JAR to the eclipse_dir/plugins/com.bowstreet.designer.core/lib directory.
- Modify the Designer plug-in's plugin.xml file in the eclipse_dir/plugins/com.bowstreet.designer.core/ directory by adding a <library /> element to the <runtime /> node similar to the following:
<library name="lib/my_classes.jar"/>
- Right-click on the Factory project, displaying the Properties for Factory dialog.
- Select the Java Build Path entry and click on the Libraries tab, displaying a list of JAR files currently in the project's Java Build Path.
- Click the Add JARs button, displaying the JAR Selection dialog.
- Navigate to the appropriate directory and select the JAR you want to add to the project.
- Click OK in the JAR Selection dialog.
- Click OK in the Properties for Factory dialog.