Deploying the JVM COBOL Run-time System within the Application

In this tutorial, you are deploying the run-time system on a per-bean basis. Therefore, you must deploy it from within the dynamic Web project.
Note: Outside of this tutorial, if you are deploying the JVM COBOL run-time system (mfcobolrts.jar) as a shared module in the application server, you do not need to perform these steps.
  1. To ensure that the application does not attempt to locate the run-time system on the application server:
    1. In the Project Explorer pane, navigate to TemperatureConverterPrj > WebContent > META-INF, then double-click MANIFEST.MF.

      The manifest file for the application appears.

      MANIFEST.MF

    2. If present, delete the line that starts Dependencies:, then save the file.
  2. Add the run-time system to the project:
    1. Right-click TemperatureConverterPrj then choose Properties.

      The Properties for TemperatureConverterPrj dialog box appears.

    2. Click Java Build Path.
    3. On the Libraries tab, click Add Library.

      The Add Library dialog box appears.

    4. Choose COBOL JVM Runtime System, click Next, then click Finish.
    5. Click OK to save the changes.
  3. Set the run-time system to be deployed with the application:
    1. In the Properties for TemperatureConverterPrj dialog box, click Deployment Assembly.

      The Web Deployment Assembly pane appears.

    2. Click Add.

      The New Assembly Directive dialog box appears.

    3. Click Java Build Path Entries, then click Next.
    4. Click COBOL JVM Runtime System, then click Finish.

      The JVM COBOL Runtime System will be deployed with the Web application.

      Deploy run-time

    5. Click OK to save the changes and close the Properties page.