Guide to Object-oriented Programming With Java (University at Buffalo Version)
Chapter 1: Setting Up Your Eclipse Environment
The Eclipse Interactive Development Environment (IDE)
This guide will use the Eclipse IDE 2021-06 version as our code editor (IDE).
If you want to develop Java programs on your own machine (Linnux, MacOS, or Windows) the you need download and install eclipse.
Open Eclipse you need to setup your workspace. See the Eclipse Icons web site for an explanaton of the toolbar icons. You need to create a new project (edu
) to store your .java
files. Then you need to create new packages:

- In the Toolbar, click:
File
- Choose:
New
- Choose:
Java Project
- In the
Project Name:
text field, type:edu
- Click:
Finish
- Choose:
- Right-click on:
edu
- Choose:
New
- Choose:
Package
- In the
Name:
text field, type:buffalo.edu.fa23.assignments.your-last-name
- Click:
Finish
- Choose:
- Right-click on:
edu
- Choose:
New
- Choose:
Package
- In the
Name:
text field, type:buffalo.edu.fa23.exercises.your-last-name
- Click:
Finish
- Choose:
You are now ready to create your first Java program.

- In the Toolbar, click:
File
- Choose:
New
- Choose:
class
- In the
Name:
text field, type:HelloWorld
- Check the box for:
public static void main(String[] args)
- Click:
Finish
- Choose:
Your new file will open in the editor window with the template code. The next Chapter will expand on this file.