Learn Java for Web Development

(Tina Meador) #1
CHAPTER 1: Introducing Java Web Development 15


  1. Type chapter1 in the “Project name” field.

  2. Click Finish. You can change a number of other options here. However, for
    our purposes, the default settings work just fine.


Creating the Application

To create a class with a main method for your first program, follow these steps:



  1. Right-click the chapter1 project in the Eclipse Package Explorer, choose
    New, and then choose Class. The New Java Class window displays, as
    shown in Figure 1-8.


Figure 1-8. Creating a Java class

Free download pdf