How to Configure Eclipse for Java
Mobile Game Development
Overview
Once you have installed Eclipse, follow these directions to
configure it to develop code in Java.
Configuring Eclipse for Java
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 in your MobileGames folder,
e.g., My Documents\MobileGames\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 Importdialog 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.