How to Configure Eclipse for Java
Rose-Hulman Institute of Technology –
Computer Science & Software Engineering
Overview
Once you have installed Eclipse, follow these directions to
configure it to develop code in Java.
Configuring Eclipse
Follow
all
of the following steps to configure Eclipse on Windows for Java:
-
Download Eclipse preferences
-
Download
this zipped Eclipse preferences file
-
Extract the single
EclipsePreferencesForJava<version>.epf file to a place of your choosing. (You may delete the file after completing the rest of these instructions.)
-
Create a folder
- In Windows, create a folder (appropriately named "JavaProjects")
to use for your java projects.
One suggested structure is to put it within your course folder,
for example, "My Documents\Courses\CSSE220\JavaProjects\.
-
Import the preferences
-
Launch Eclipse
- If Eclipse offers to Select a workspace,
browse to the JavaProjects folder you just created
and check the Use this as default box.
- Otherwise,
choose File → Switch Workspace → Other…,
and browse to the JavaProjects folder you just created.
- Click the Workbench arrow
- Now you are ready to set the preferences for that workspace:
-
Choose
File → Import....
-
In the
Import
dialog box, select
General → Preferences
and click
Next >.
-
Browse for the preferences file,
EclipsePreferencesForJava<version>.epf, that you downloaded above.
-
Make sure the
Import All
radio button is selected, then click
Finish.