The New Java Project with Existing Sources wizard enables you to create
a new
from an existing Java SE source folder. You open the wizard by
opening the New Project wizard and selecting the
Java Application with Existing Sources template from the General category.
On the Existing Sources page, you have to set the following properties:
Source Packages Folder. Specifies the folder that contains the Java
source code for the project. You must set the Source Packages Folder to the
folder that contains the default package.
Test Packages Folder (Optional). Specifies the folder that contains
the JUnit test suites for the project. You must set the Test Packages Folder
to the folder that contains the default package.
When you click Finish, the project is created on your computer and opened in
both the Projects window and the Files window.