Getting started
This tutorial is designed to get you started on using the Java Development Toolkit (JDT) in the workbench.
Preparing the workbench
In this section, you will verify that the workbench is properly set up for Java development.
The following is assumed:
-
You are starting with a new workbench installation with default settings.
-
You are familiar with the basic 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
-
Select the menu item Window > Preferences to open the workbench preferences.
-
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 check mark in the list of
installed JREs.
-
Select Workbench in the tree pane to display the Workbench preference page. Confirm that the Perform build automatically on
resource modification option is checked.
-
Select Java > New Project in the tree pane to display the New Project preference page. Confirm that As source and output location
use is set to Project.
-
Select Java > Editor in the tree pane to display the Java Editor preference page. On the preference page, press the Problem
Indication tab. Confirm that all options are checked.
-
Click on OK to save the preferences.
Installing the JDT example plug-ins
The JDT example plug-ins contribute a New Wizard that automatically creates a sample project in your workbench. For this tutorial,
you will
manually create our new project in order to review the steps involved.
But first you must download and install
the examples if you have not done so already.
-
Go to the http://www.eclipse.org/downloads/
page and locate the release that you are working with.
-
Download the Example Plug-ins zip file appropriate for your platform.
-
If the workbench is running, shut it down. Plug-ins should not be installed while the workbench is running.
-
Extract the contents of the Zip file to the root directory of your workbench installation (e.g. c:\eclipse).
-
Start the workbench.
Java projects
Classpath variables
Build classpath
Working with build paths
Working with JREs
JRE Installations Preferences
New Project Preferences
Java Editor Preferences