Providing access to non-EGL JAR files

You may need to provide access to non-EGL JAR files to debug and run your EGL-generated Java™ code. The process for providing access to those files varies by project type:
Application client project
Before running your code perform the following steps:
  1. For each enterprise application project that references the application client project, import JAR files of interest from a directory in the file system:
    1. In the Project Explorer view, right-click an enterprise application project and click Import.
    2. At the Select page, click File System.
    3. At the File System page, specify the directory in which the JAR files reside.
    4. At the right of the page, select the JAR files of interest.
    5. Click Finish.
  2. Ensure that the build path for each of the affected modules points to the JAR files in the EAR:
    1. Right-click on the EAR project in the Project Explorer.
    2. Select J2EE Module Dependencies from the context menu.
    3. Click Add JARs and select the JAR files. Click OK to finish.
EJB project
Before running your code (with or without the EGL Java debugger), do as follows:
  1. For each enterprise application project that references the EJB project, import JAR files of interest from a directory in the file system:
    1. In the Project Explorer view, right-click an enterprise application project and click Import.
    2. At the Select page, click File System.
    3. At the File System page, specify the directory in which the JAR files reside.
    4. At the right of the page, select the JAR files of interest.
    5. Click Finish.
  2. Update the manifest in the EJB project so that the JAR files in the enterprise application project are available at run time:
    1. In the Project Explorer view, right-click your EJB project and click Properties.
    2. At the left of the Properties page, click Java JAR Dependencies.
    3. When the section called Java JAR Dependencies is displayed at the right of the page, set each check box that corresponds to a JAR file of interest.
    4. Click OK.
J2EE web project
Before running your code (with or without the EGL Java debugger), import the JAR files from the file system to the following web project folder:
  Web Content/WEB-INF/lib
The import process is as follows for a set of jar files in a directory:
  1. In the Project Explorer view, expand the web project, expand Web Content, expand WEB-INF, right-click lib, and click Import.
  2. At the Select page, click File System.
  3. At the File System page, specify the directory in which the JAR files reside.
  4. At the right of the page, select the JAR files of interest.
  5. Click Finish.


Feedback