Eclipse Creating a Java Project
Opening the new Java project wizard
The new Java project wizard makes it easy to create a Java project. The ways to open the wizard are:
- By clicking the "File" menu and then selecting New > Java Project
- Right-click anywhere in the Project Explorer window and select New > Java Project
- Click the new button on the toolbar (
) and select Java Project
Using the new Java project wizard
The new Java project wizard has two pages.
The first page:
- Enter the project name (in the Project Name field)
- Select a Java Runtime Environment (JRE) or simply use the default
- Select the project layout (Project Layout), which determines whether source code and class files are placed in separate folders. The recommended option is to create separate folders for source code and class files.
You can click the "Finish" button to create the project, or click the "Next" button to modify the java build configuration.
The second page Java Build Path settings (Java Build Settings), on this page we can configure the project's dependencies and additional jar packages.
Viewing the new project
The Package Explorer shows the new Java project. The "J" letter on the project icon indicates a Java project. A folder icon indicates a java source folder.