Java Reference
In-Depth Information
You are now ready to start your first project in Eclipse. The following exercise takes you through
the process step‐by‐step, to help you get acquainted with Eclipse and how its projects are organized.
You'll follow very similar steps in every exercise that follows in this topic.
Creating Your First Java application in Eclipse
try it out
In this exercise, you create a very simple Java program. You will code, compile, and run it all within the
Eclipse development environment.
1.
Open Eclipse and select the workspace you want to use. This is where your project will be saved by
default.
2.
Go to File New Java Project to create a new project. You will see a New Java Project window,
like the one shown in Figure 3-10, to input information about the project.
figure 3-10  
3.
Type MyFirstJavaProject for the project name.
4.
Leave the default settings for the remaining fields. Check that the execution environment is the
most recent Java. JavaSE‐1.8 is the most recent as of the printing of this topic.
5.
Click Finish to create your project. You should see the project appear in your Project Explorer (or
Package Explorer if you did not change the view).
Search WWH ::




Custom Search