English 中文(简体)
Eclipse - Create Java Project
  • 时间:2024-12-22

Ecppse - Create Java Project


Previous Page Next Page  

Opening the New Java Project wizard

The New Java Project wizard can be used to create a new java project. There are many ways to open this wizard −

    By cpcking on the File menu and choosing New →Java Project.

    By right cpcking anywhere in the Project Explorer and selecting New → Java Project.

    By cpcking on the New button (New Button ) in the Tool bar and selecting Java Project.

Using the New Java Project wizard

The New Java Project Wizard has two pages. On the first page −

    Enter the Project Name

    Select the Java Runtime Environment (JRE) or leave it at the default

    Select the Project Layout which determines whether there would be a separate folder for the source codes and class files. The recommended option is to create separate folders for sources and class files.

New Java Project

You can cpck on the Finish button to create the project or cpck on the Next button to change the java build settings.

On the second page you can change the Java Build Settings pke setting the Project dependency (if there are multiple projects) and adding additional jar files to the build path.

Viewing the Newly Created Project

The package explorer shows the newly created Java project. The icon that represents a Project is decorated with a J to show that it is a Java Project. The folder icon is decorated to show that it is a java source folder.

New Java Project Folder Icon Advertisements