Preparing Eclipse

In this section, you will verify that Eclipse is properly set up for Java development.

The following is assumed:

If you're not familiar with the basic workbench mechanisms, please see the Getting Started chapter of the Workbench User Guide.

Verifying JRE installation and classpath variables

  1. If you still see the Eclipse Welcome page, click the arrow icon to begin using Eclipse.
  2. Select the menu item Window > Preferences to open the workbench preferences. 
  3. Select Java > Installed JREs in the tree pane on the left to display the Installed Java Runtime Environments preference page. Confirm that a JRE has been detected. By default, the JRE used to run the workbench will be used to build and run Java programs. It should appear with a checkmark in the list of installed JREs. We recommend that you use a Java SDK instead of a JRE. An SDK is designed for development and contains the source code for the Java library, easing debugging. Additional SDKs can be added by searching the hard drive for installed SDKs. To do so, simply click the Search button and specify a root folder for the search.

    Installed JREs preference page

  4. Select General > Workspace in the tree pane to display the Workspace preference page. Confirm that the Build automatically option is checked.

    Workbench preference page

  5. Select Java > Build Path in the tree pane to display the Build Path preference page. Confirm that Source and output folder is set to Project.

    New project preference page

  6. Select Java > Editor in the tree pane to display the Java Editor preference page. Confirm that option Report problems as you type is checked.

    Java Editor preference page

  7. Click on OK to save the preferences.

Related concepts

Java projects
Classpath variables
Build classpath

Related tasks

Working with build paths
Working with JREs

Related reference

JRE Installations Preferences
Java Editor Preferences