Adding a JAR file or class folder to a Java XOM

You can add a JAR file or a class folder to a Java™ XOM.

Procedure

To add a JAR file or a class folder:

  1. In the Rule Explorer view, select the rule project, and then on the Project menu, click Properties.

    You can also right-click the project name and select Properties from the contextual menu.

  2. Click Java Execution Object Model in the list of properties.
  3. Click the Libraries tab to display the Libraries page so that you can select the required JAR files and class folders.
    • To add JAR files that have been imported in the Eclipse workspace, click Add JARs. A dialog opens for you to browse JAR files in the workspace.

    • To add JAR files that are not in the workspace, click Add External JARs. A dialog opens for you to browse the JAR files in your file system.

    • To add class folders, click Add Class Folder. A dialog opens for you to browse directories in the workspace. In this same dialog, you can add external class folders by creating a folder in the workspace that links to an external folder in the file system.

    Note:

    By default, the Java Runtime Environment (JRE) library is already in the list of libraries. This library is the same as the one used to run Eclipse. You cannot remove it. You can browse the JRE library to see the JAR files used by this library.

  4. Click Apply and Close.

Results

You must now specify the location of the source to be used to reference a library.