Importing a Legacy Project

See Also | Tutorials

A legacy project is a project that was created in Java Studio Creator 2, Java Studio Creator 2 Update 1, or NetBeans Visual Web Pack 5.5. You can import a legacy project in NetBeans 6.0. For more information about importing legacy projects, go to

To import a legacy project:

  1. Import the settings from a previous version of the IDE
  2. In the main toolbar, choose File > Open Project.
  3. In the Open Project dialog box, browse for the project.
  4. Click Open Project Folder to open the project in the IDE.

    The IDE scans the project classpath.

  5. Expand the project's node. A progress bar appears in the bottom right tray, displaying "Updating Legacy Project".
    The project is updated. Database drivers and connections from all previous NetBeans and Java Studio Creator
    installations are displayed in the Databases node in the Services window.

Connecting to a Database

For Visual Web projects that use databases, you must connect to a database before opening pages in the Visual Web Designer and before the application can access data from it.

  1. In the Services Window, expand the Databases node database node icon, and then right-click the node of the database you want to use and choose Connect.

    The IDE prompts you to enter a password for the database.

Resolving Data Sources

For Visual Web projects that use databases in NetBeans 6.0, you must resolve all data sources before opening pages in the Visual Web Designer and you attempt to run the application.

  1. In the Projects window, the project node is red and displays a badge when there is a missing data source. To resolve a data source, right-click the project-name node and choose Resolve Data Source Problem.
  2. In the Resolve Data Source(s) dialog box, select the database name from the list and click Add Data Connection.

    The Resolve Data Sources dialog box opens, displaying data sources that do not have a database connection.

  3. Select the data souce you want to resolve and click Add Connection.

    The New Database Connection dialog box opens.

  4. The database information should be filled in automatically. Check to make sure all information is correct.
  5. If the JDBC driver for the database used is not set correctly, click the Driver drop down list and choose Add driver to
    navigate to the location of the required JDBC driver.
  6. Click OK.

    The driver and database connection are registered in the Services window. The badge should disappear from the project-name node in the Projects window. and the project-name node should return to black.

See Also
Adding a Database Connection
Importing Settings from a Previous Version of the IDE
Working with Databases with Visual Web Applications
Visual Web Database Tasks: Quick Reference
Tutorials

Legal Notices