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 using the interpretive debugger, reference the non-EGL jar files in the CLASSPATH variable, as described in Setting preferences for the EGL debugger.

Before running your code (with or without the EGL Java debugger), do as follows:

  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. Update the manifest in the application client 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 application client 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

EJB project

Before using the interpretive debugger, reference the non-EGL jar files in the CLASSPATH variable, as described in Setting preferences for the EGL debugger.

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

Java project

Before running your code with the interpretive debugger, reference the non-EGL jar files in the CLASSPATH variable, as described in Setting preferences for the EGL debugger.

Before running your code with the EGL Java debugger, add entries to the project's Java build path:

  1. In the Project Explorer view, right-click your Java project and click Properties

  2. At the left of the Properties page, click Java Build Path

  3. When the section called Java Build Path is displayed at the right of the page, click the Libraries tab

  4. For each jar file to be added, click Add External Jars and use the Browse mechanism to select the file

  5. To close the Properties page, click OK

J2EE Web project

Before using the interpretive debugger, reference the non-EGL jar files in the CLASSPATH variable, as described in Setting preferences for the EGL debugger.

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

The following jar-file requirements are in effect:

Related tasks
Setting preferences for the EGL debugger
Setting up the J2EE run-time environment for EGL-generated code