A complete tutorial is here:
http://www.vogella.de/articles/Eclipse/article.html.
Below is a short version.
1. Workspace The workspace is
the physical location (file path) you are working in.
You can choose the workspace during startup of eclipse or via the menu
(File-> Switch Workspace-> Others). All your projects, sources
files, images and other artifacts will be stored and saved in your
workspace.
2. Perspective and Editors A
perspective is a visual container for a set of views and editors. You
can change the layout within a perspective (close / open views,
editors, change the size, change the position, etc.). Eclipse allow you
to switch to another perspective via the menu Window->Open
Perspective -> Other. For Java development you usually use the "Java
Perspective". Editors are used to modify elements. Editors
can have code completion, undo / redo, etc. To apply the changes in an
editor to the underlying resources, e.g. Java source file, you usually
have to save.
3. Create your first Java program
The following will describe how to create a minimal Java program using
Eclipse.
3.1 Create project Select
from the menu File -> New-> Java project. Maintain
"cis180.lab0" as the project name. Select "Create separate source and
output folders". Press finish to create the project. A new project is
created and
displayed as a folder. Open the folder "cis180".
3.2 Create package Create now a
package. A good convention is to use the same name for the
top package as the project. Create therefore the package "cis180.lab0".
Select the folder src, right mouse click on it and select New ->
Package.
3.3 Create Java class Right
click on your package and select New -> Class. Create
Colors
class, select the flag "public static void main (String[] args)".
Now follow the Lab 0 instruction to edit the
Colors.java file.
3.4 Run your project in Eclipse
Now run your code. Right click on your Java class and select
Run-as-> Java application.