Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Java Development User Guide
Previous Page Home Next Page

Preparing Eclipse

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

The following is assumed:

  • You are starting with a new Eclipse installation with default settings.
  • You are familiar with the basic Eclipse workbench mechanisms, such as views and perspectives.

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 Goto workbench preferences Window > Preferences... to open the workbench preferences. 
  3. Select the Goto the installed JREs preference page Java > Installed JREs preference page to display the installed Java Runtime Environments. 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.
    If you work with code that does not yet use generics (as we do in this tutorial), we recommend that you install a Java SDK 1.4 as well, but leave the most recent version checked as default.

    Installed JREs preference page

  4. Select the Goto the workspace preference page General > Workspace preference page. Confirm that the Build automatically option is checked.

    Workbench preference page

  5. Select the Goto the Java build path preference page Java > Build Path preference page. Confirm that Source and output folder is set to Folders.

    New project build patch preference page

  6. Select the Goto the Java editor preference page Java > Editor preference page. Confirm that option Report problems as you type is checked.

    Java editor preference page

  7. Select the Goto the Java compiler preference page Java > Compiler preference page. Confirm that option Compiler compliance level matches your default JRE version (usually 1.6).

    Java compiler settings preference page

  8. Click on OK to save the preferences.

Related concepts

Java projects
Classpath variables
Build classpath

Related tasks

Working with JREs

Related reference

Installed JREs Preferences
Java Editor Preferences


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire