Starting Eclipse
Download
Report
Transcript Starting Eclipse
Starting Eclipse
Just the basics
7-Apr-16
Getting Eclipse
If you Google for “Eclipse”:
Click on the download link
You will get a zip file; unzip it
The first hit is the home page, http://www.eclipse.org/
The second hit is “Eclipse Downloads,”
http://www.eclipse.org/downloads/index.php
The current version (Nov. 28, 2005) is Eclipse SDK 3.1.1
No further “installation” is necessary (assuming your Java is installed
correctly)
Run the eclipse.exe file
You will be asked to choose a folder for a “workspace” (mine is called
workspace); do so
No further configuration is necessary
The Welcome screen
go to the workbench
overview
tutorials
samples
what’s
new
The Java “perspective”
Projects in the workspace
In Eclipse, as in BlueJ, classes are organized into
projects (complete programs)
Each project is kept in a folder
Eclipse projects are kept in a workspace, which is just a
folder containing project folders
When you first start Eclipse, you will be asked to
choose a workspace (folder)
You can set this as default, so you use the same workspace
every time
You can tell Eclipse to ask you for the workspace each time it
starts up
Starting a new project
Choose File New Project... Java Project
and give your new project a name
Choose File New Class and give your new class
a name
This will also be the name of the folder that is created in the
workspace
You can also check the box that asks Eclipse to generate a
main method for you
Start editing!
Compiling and running
You don’t compile your program; Eclipse does that
automatically as you type
It also points out errors as you go along
The first time you run your program, choose Run
Run As... Java Application
After that, you can just click the green circle with a
triangle in it
Or, you can use the drop-down list to the right of the green
circle to choose a particular program to run
Importing projects
If you have a program that you created outside Eclipse,
Create a folder for it in your workspace
Move your Java files to that folder
Choose File New Project... Java Project and
type in the name of your new folder
Eclipse will recognize it and ask if you want to make the folder into a
new project; just click Finish
Tips
Double-clicking a tab expands that area to the full size
of the window; double-clicking it again brings it back to
normal
Explore the menus! There’s a lot of great stuff there
The End