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.

  1. Select File > Import from the main menu bar of the Web Application Development perspective.
  2. Select Existing Project into Workspace and click Next.
  3. Do one of the following:
    Option Description
    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.

    The workspace in which you created the Web Application Development project has different JRE runtime and server runtime preferences than the workspace you imported the project to, therefore you must fix the settings for the project to work correctly.

  5. Select the imported project in the WorkSpace Navigator, right-click, and select Properties. 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, click the arrow in the Target Runtime field.
  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 to build the project.
Related tasks
Creating a Web Application Project
Adding Facet Support to a Web Application Project
Related reference
Web Application Project

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.