Getting Started with Eclipse

This handout describes how to use eclipse in the CS Computer Science Labs. The instructions are applicable to your home machine as well, but the directory you store your program in will be different.

Table of Contents


Starting eclipse
Creating a simple application
Exiting Eclipse
Zipping up your program
Bringing your program home


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.

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.


Starting eclipse:

Figure 1: The Eclipse Java Development Perspective

Creating a simple application