Tt
Click this widget to change the font size.
CC
Click this widget to change contrast.

Home Page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Links | Search | Bio |

Guide to Object-oriented Programming With Java (Buffalo State University 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:

Toolbar
  1. In the Toolbar, click: File
  2. Choose: New
    1. Choose: Java Project
    2. In the Project Name: text field, type: edu.buffalostate.cis425.fa10.exercises.
    3. Click: Finish

Figure 1-1: Setting Up Your Eclipse Workspace

You are now ready to create your first Java program.

Toolbar
  1. In the Toolbar, click: File
  2. Choose: New
    1. Choose: class
    2. In the Name: text field, type: HelloWorld
    3. Check the box for: public static void main(String[] args)
    4. Click: Finish

Your new file will open in the editor window with the template code. The next Chapter will expand on this file.

Figure 1-2: Setting Up Your Eclipse Workspace

Help contribute to my OER Resources. Donate with PayPal button via my PayPal account.
Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Copyright © 2016-2024 Jim Gerland