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.
To ensure that the application does not attempt to locate the run-time system on the application server:
In the
Navigator pane, navigate to
TemperatureConverterPrj > WebContent > META-INF, then double-click
MANIFEST.MF.
The manifest file for the application appears.
If present, delete the line that starts
Dependencies:, then save the file.
Add the run-time system to the project:
Right-click
TemperatureConverterPrj then choose
Properties.
The
Properties for <project> dialog box appears.
Click
Java Build Path.
On the
Libraries tab, click
Add Library.
The
Add Library dialog box appears.
Choose
COBOL JVM Runtime System, click
Next, then click
Finish.
Click
OK to save the changes.
Set the run-time system to be deployed with the application:
In the
Properties for <project> dialog box, click
Deployment Assembly.
The
Web Deployment Assembly pane appears.
Click
Add.
The
New Assembly Directive dialog box appears.
Click
Java Build Path Entries, then click
Next.
Click
COBOL JVM Runtime System, then click
Finish.
The JVM COBOL Runtime System will be deployed with the Web application.
Click
OK to save the changes and close the Properties page.