Importing JAR, WAR, EJB JAR, client application JAR, and RAR files

About this task

You can use the Import wizard to add JAR, WAR, EJB JAR, client application JAR, and RAR files to your enterprise project.

Procedure

  1. Right-click your project and select Import. Select the type of file you want to import:
    • Application Client JAR file
    • EAR file
    • EJB JAR file
    • Java EE Utility JAR file
    • RAR file
    • Shared EAR file
    • WAR file
  2. Follow the steps to import your selected type of file:
    • Application Client JAR file:
      1. In the Application Client Import page, next to the Application Client file field, click Browse to locate the file you want to import. When the file is added, the name of the imported project appears in the Application Client project field. You can change the name of the project by typing in a different name. Select Add project to an EAR and provide a name for the EAR file (the default is derived from your <project_name> + EAR).
      2. Click Finish.
    • EAR file:
      1. In the Enterprise Application Import page, next to the EAR file field, click Browse to locate the file you want to import. When the file is added, the name of the imported project appears in the EAR project field. You can change the name of the project by typing in a different name. Select your preferred target run time in the Target Runtime field, and click Next.
      2. In the Enterprise Application Import page, in the Utility jars and web libraries field, and select the additional jars that you want to include in your project. Accept the default for Project locations or modify, and click Finish.
    • EJB JAR file:
      1. In the EJB JAR Import page, next to the EJB JAR file field, click Browse to locate the file you want to import. When the file is added, the name of the imported project appears in the EJB project field. You can change the name of the project by typing in a different name. Select Add project to an EAR and provide a name for the EAR file (the default is derived from your <project_name> + EAR).
      2. Click Finish.
    • Java EE Utility JAR:
      1. On the Utility Jar Import page, in the Select EAR Project field, ensure that your project appears, or type a new project name. In the Select import type field, select one of the following options:
        • Create Java™ Projects from Utility JARs
        • Create linked Java Projects from Utility JARs
        • Copy Utility JARs into an existing EAR from an external location
        • Create Linked Utility JARs in an existing EAR from an external location
        In the Project import options field, you can select Override Project Root (Specify location below), and type an alternative project location, or click Browse to locate a directory in your file system. Click Next.
      2. On the Utility Jar Import page, click Browse to locate the director that contains the utility JAR files that you want to import. In the Utility Jars and Web libraries field, select the files that you want to import. Click Finish.
    • RAR file:
      1. In the Connector Import page, next to the Connector file field, click Browse to locate the file you want to import. When the file is added, the name of the imported project appears in the Connector module field. You can change the name of the project by typing in a different name. Select Add project to an EAR and provide a name for the EAR file (the default is derived from your <project_name> + EAR).
      2. Click Finish.
    • Shared EAR file:
      1. In the Shared EAR Import page, next to the EAR file field, click Browse to locate the file you want to import. When the file is added, the name of the imported project appears in the EAR project field. You can change the name of the project by typing in a different name. Select your preferred target run time in the Target Runtime field.
      2. Click Finish.
    • WAR file:
      1. In the WAR Import page, next to the WAR file field, click Browse to locate the file you want to import. When the file is added, the name of the imported project appears in the Web project field. You can change the name of the project by typing in a different name. Select Add project to an EAR and provide a name for the EAR file (the default is derived from your <project_name> + EAR). Click Next.
      2. On the WAR Import: Web Libraries page, select any Web libraries that you want to add to your project. Click Finish.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: timport.html