Importing a Legacy Project
See Also
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 IDE. For more information about importing legacy projects, go to
- Note: When you migrate the Java Studio Creator 2.1 user directory,
third party complibs migrate to the .netbeans directory and
appear in the Component Library Manager.
To import a legacy project:
-
Import the settings from a previous version of the IDE
-
In the main toolbar, choose File > Open Project.
-
In the Open Project dialog box, browse for the project.
-
Click Open Project Folder to open the project in the IDE.
The IDE scans the project classpath.
- 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.
- Note: If the legacy project requires database connections that are not available in previous releases, then these required connections will not be available in your version of the IDE. The Resolve Data Sources will open, guiding you through this process.
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.
-
In the Services Window, expand the Databases node
, and then right-click the
node of the database you want to use and choose Connect.
If a password is required to access the database, the IDE prompts you to enter a password for the database.
Resolving Data Sources
For Visual Web projects that use databases in NetBeans IDE, you must resolve all data sources before
opening pages in the Visual Web Designer and you attempt to run the application.
- 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.
-
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.
For more help, press F1 to open the Help topic for the Resolve Data Sources dialog box.
-
Select the data souce you want to resolve and click Add Connection.
The New Database
Connection dialog box opens.
- The database information should be filled in automatically. Check to make sure all information is correct.
- 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.
-
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
Legal
Notices