Appendix J.9 Creating an archive file

In the environment prior to migration, create an archive file (EAR file, WAR file, or EJB-JAR file) in the project during the execution of the building process. In WTP, the archive file is not created during the building process. Therefore, if you want to create an archive file, use the export functionality of WTP.

Reference note
In an EAR project (exploded archive format), an archive is not created when executing the building process.

This section describes how to create an archive file.

Organization of this subsection
(1) Creating an EAR file
(2) Creating an EJB-JAR file
(3) Creating a WAR file

(1) Creating an EAR file

To create an EAR file:

  1. From the Eclipse menu bar, choose File - Export.
    The Export dialog box appears.

    [Figure]

  2. Select Java EE - EAR file, and then click the Next button.
    The EAR Export page appears.

    [Figure]

  3. Specify the following items.
    Item nameValuesSettings
    EAR ProjectSelect an enterprise application project to be exported.Z
    DestinationSpecify the file path of the export destination of EAR file.Z
    Legend:
    Z: Mandatory

  4. Click the Finish button.
    The EAR file will be exported.

(2) Creating an EJB-JAR file

  1. From the Eclipse menu bar, choose File - Export.
    The Export dialog box appears.

    [Figure]

  2. Select EJB - EJB JAR file, and then click the Next button.
    The EJB Jar Export page appears.

    [Figure]

  3. Specify the following items.
    Item nameValuesSettings
    EJB ProjectSelect an EJB project to export.Z
    DestinationEJB-JAR file to be exported.Z
    Legend:
    Z: Mandatory

  4. Click the Finish button.

The EAR-JAR file will be exported.

(3) Creating a WAR file

To create a WAR file:

  1. From the Eclipse menu bar, select File - Export.
    The Export dialog box appears.

    [Figure]

  2. Select Web - WAR file, and then click the Next button.
    The WAR Export page appears.

    [Figure]

  3. Specify the following items:
    ItemsValueSetting
    Web projectSelect the Web project to export.Z
    DestinationSpecify the file path of the export destination of WAR file.Z
    Legend:
    Z: Mandatory

  4. Click the Finish button.
    The WAR file will be exported.