blob: dcff293bf673288d04d83461e8e396b5a8a363f1 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>
Preparing the workbench
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
</head>
<body>
<h1>
Preparing the workbench
</h1>
<p>
In this section, you will verify that the workbench is properly set up for Java development.
</p>
<p>
The following is assumed:
</p>
<ul>
<li>
You are starting with a new workbench installation with default settings.
</li>
<li>
You are familiar with the basic workbench mechanisms, such as views and perspectives.
</li>
</ul>
<p>
If you're not familiar with the basic workbench mechanisms, please see the Getting Started chapter of the Workbench User Guide.
</p>
<h2>
Verifying JRE installation and classpath variables
</h2>
<ol>
<li>
Select the menu item <b> Window &gt; Preferences</b> to open the workbench preferences.&nbsp;
</li>
<li>
Select <b>Java &gt; Installed JREs</b> in the tree pane on the left to
display the <strong>Installed Java Runtime Environments</strong> 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. 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 hence easing debugging. Additional SDKs can be added by searching the harddrive for installed
SDKs. To do so simply click the <strong>Search</strong> button and specify a root folder for the search.
<p>
<img src="../images/qs-1.gif" width=411 height=144 alt="Installed JREs preference page">
</p>
</li>
<li>
Select <strong>Workbench</strong> in the tree pane to display the <strong>Workbench</strong> preference page. Confirm that the <strong>Perform build automatically on
resource modification</strong> option is checked.
<p>
<img src="../images/qs-2.gif" width=411 height=54 alt="Workbench preference page">
</p>
</li>
<li>
Select <b>Java &gt; New Project </b> in the tree pane to display the <strong>New Project</strong> preference page. Confirm that <strong>Source and output folder </strong> is set to <strong>Project</strong>.
<p>
<img src="../images/qs-3.gif" width=410 height=197 alt="New project preference page">
</p>
</li>
<li>
Select <strong>Java &gt; Editor</strong> in the tree pane to display the <strong>Java Editor</strong> preference page. On the preference page,
press the <strong>Annotations</strong> tab. Confirm that all options are checked.
<p>
<img src="../images/qs-17a.gif" width=431 height=268 alt="Java Editor preference page">
</p>
</li>
<li>
Click on <strong>OK</strong> to save the preferences.
</li>
</ol>
<h2>
Installing the JDT example plug-ins
</h2>
<p>
The JDT example plug-ins contribute a New Wizard that automatically creates a sample project in your workbench. In this tutorial,
you will
manually create a new project in order to review the steps involved.&nbsp;
But first you need to download and install
the examples (if you have not done so already).
</p>
<ol>
<li>
Go to the <a href="http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a>
page and locate the release that you are working with.
</li>
<li>
Scroll down to the <em>Example Plug-ins</em> section and follow the install instructions.
</li>
<li>
If the workbench is running, shut it down. Plug-ins should not be installed while the workbench is running.
</li>
<li>
Extract the contents of the Zip file to the root directory of your workbench installation (e.g. <em>c:\eclipse</em>).
</li>
<li>
Start the workbench.
</li>
</ol>
<p>
<img border="0" src="../images/ngrelc.gif" alt="Related concepts" width="159" height="27">
</p>
<p>
<a href="../concepts/concepts-3.htm">Java projects</a><br>
<a href="../concepts/cclsspthv.htm">Classpath variables</a><br>
<a href="../concepts/cbuildcp.htm">Build classpath</a><br>
</p>
<p>
<img src="../images/ngrelt.gif" width=159 height=27 alt="Related tasks">
</p>
<p>
<a href="../tasks/tasks-110.htm">Working with build paths</a><br>
<a href="../tasks/tasks-JREs.htm">Working with JREs</a><br>
</p>
<p>
<img src="../images/ngrelr.gif" width=159 height=27 alt="Related reference">
</p>
<p>
<a href="../reference/ref-19.htm">JRE Installations Preferences</a><br>
<a href="../reference/ref-preferences-new-project.htm">New Project Preferences</a><br>
<a href="../reference/ref-21.htm">Java Editor Preferences</a><br>
</p>
<a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" width=324 height=14 alt="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." border="0"></a>
</body>
</html>