Preliminaries
Starting eclipse
Creating a simple application
Exiting Eclipse
Zipping up your program
Bringing your program home
Eclipse does not need to be installed. You can just unzip an eclipse zip file
into your own directory, locate the eclipse.exe file in the
directory structure, and execute it.
Eclipse organizes projects into workspaces.
A project can contain one or more programs,
but for now we will assume that each project contains one program.
For example, you will be creating an eclipse project for each lab assignment.
A workspace is a directory
containing some eclipse-specific files that contain information used by
the eclipse system.
A workspace can contain one or more projects.
When you start eclipse, you
choose a specific workspace. All of the projects in the workspace are
available to you and you can easily switch among the projects in the
workspace. You can create one workspace for all of the project in your course
or you can divide them into several workspaces. For example, in CS 1713,
you will create separate workspaces for your labs (recitations),
programming projects, and class projects.
Now click Finish.
You should see something like Figure 2, below.
Overview
Eclipse is an IDE (integrated development environment) for creating and
debugging programs. We will be using eclipse exclusively for Java, but it can
be also used for other programming languages. Eclipse is free, and you can
install it on your home PC, giving you the same capabilities as in our
computer labs.
Preliminaries:
To access items through a menu (e.g. the File menu appearing
on the top bar of the main window), left click on the menu item.
A pull-down menu will appear.
Move the cursor over the action you want (e.g. New
Project) and left click.
In the handout we will describe this sequence
as "Select the New Project option on the File menu".
Starting eclipse:
labs
classes
projects

Figure 1: The Eclipse Java Development Perspective

Figure 2: The HelloWorld class has been created
public static void main(String[] args) {
System.out.println("Hello world, my name is YOURNAME");
}
Replace YOURNAME with your name.

Figure 3: The HelloWorld program after it has been run
Exiting Eclipse
Exit eclipse with File -> Exit