Sunday, May 28, 2017

Introduction to Java programming, Part-1 (4)

Getting started with Eclipse


Eclipse is more than an IDE; it's an entire development ecosystem. This section is a brief hands-on introduction to using Eclipse for Java development.

The Eclipse development environment

The Eclipse development environment has four main components:
  • Workspace
  • Projects
  • Perspectives
  • Views
The primary unit of organization in Eclipse is the workspace. A workspace contains all of your projects. A perspective is a way of looking at each project (hence the name), and within a perspective are one or more views.
Figure 2 shows the Java perspective, which is the default perspective for Eclipse. You see this perspective when you start Eclipse.
Figure 2. Eclipse Java perspective

The Java point of view contains the apparatuses that you have to start composing Java applications. Each selected window appeared in Figure 2 is a view for the Java viewpoint. Bundle Explorer and Outline are two especially valuable perspectives. 

The Eclipse condition is exceedingly configurable. Each view is dockable, so you can move it around in the Java point of view and place it where you need it. For the time being, however, stay with the default point of view and view setup.

Create a project

Follow these steps to create a new Java project:
  1. Click File > New > Java Project... to start the New Java Project wizard, shown in Figure 3.
Figure 3. New Java Project wizard

    2. Enter Tutorial as the project name and use the workspace location that you opened when you opened Eclipse.
    3. Verify the JDK that you're using.
    4. Click Finish to accept the project setup and create the project.
You have now created a new Eclipse Java project and source folder. Your development environment is ready for action. However, an understanding of the OOP paradigm — covered in this tutorial's next section — is essential.
Previous Post
Next Post

post written by:

0 coment�rios: