Importing a Web Application Development Project

You can import a Web Application Development project from the file system. Because JRE runtime preferences and server runtime preferences for the project may be different in your workspace, you must change certain project settings after the import is complete.

To import a Web Application Development project:

  1. Select File|Import from the main menu bar of the Web Application Development perspective.

    The Import dialog box appears.

  2. Select Existing Project into Workspace and click Next.

    The Import Projects page displays.

  3. Do one of the following:

    • Click Browse adjacent to the Select root directory field and select an existing project from a directory.

      The existing project directory is linked to the workspace and no new project directory is created.

    • Click Browse adjacent to the Select archive file field and import an existing project from an archive file.

      The archive file can have any of the following extensions: .jar, .zip, .tar, .tar.gz, or .tgz. When you select an archive file, a new project directory is created in the workspace.

  4. Click Finish.

    The Web Application Development project is imported and displays in the WorkSpace Navigator.

    Because the workspace the Web Application Development project was created in had different JRE runtime and server runtime preferences than the workspace the project was imported to, the settings must be fixed for the project to work correctly.

  5. Select the imported project in the WorkSpace Navigator, right-click, and select Properties from the context menu.

    The Properties for <projectname> dialog box appears.

  6. Double-click Java Build Path.

    Java build path entries appear.

  7. Select the Libraries tab.

  8. Ensure that the JRE and Server ClassPath Container are available.

    If these are not available, you must configure them.

  9. Click Finish.

  10. For the server runtime, select Server in the navigation list in the left pane of the Properties dialog box.

    Server configuration information displays in the right pane.

  11. Click New.

    The New Server Runtime wizard opens.

  12. Follow the instructions in the wizard to create a new server runtime environment.

  13. With the new server runtime created, select the arrow in the Target runtime field to open the drop-down list of server runtimes.

  14. Select the server runtime you created and click OK.

  15. Select Java Build Path in the navigation list in the left pane of the Properties dialog box.

    The Server Classpath Container information is updated with the new information.

  16. Click OK.

    The project should build successfully.

Exporting a Project

Developing a Web Application

Web Application Development Perspective

WorkSpace Navigator

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com