Importing Web archive (WAR) files

Show Me

You can use the WAR Import Wizard to import WAR files into your project.

A Web Archive (WAR) file is a portable, packaged Web application that you can import into your workspace.

Note: If you want to work with an existing workbench Web project or share Web projects, it is recommended that you use the Sharing projects using Project Interchange feature. This feature enables you to preserve your metatdata.

Before importing a WAR file, you should first determine if the WAR file contains needed Java™ source files.

To import the Web project resources in a WAR file into your workspace, complete the following steps:

  1. Select

    File | Import.

  2. In the Import dialog, expand the Web folder, select

    WAR file and then click

    Next.

  3. Locate the WAR file that you want to import using the

    Browse button.

  4. The wizard assumes you want to create a new Web project with the same name as the WAR file. If you accept this choice, the project will be created with the same servlet version as specified by the WAR file and in the same location.

  5. Click

    Finish to populate the Web project.

 

Related concepts

Web archive (WAR) files