blob: 99d3701c6b7116ef475eb145efb3a54a7e847cfc [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>
Adding a new JRE definition
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
</head>
<body>
<h1>
Adding a new JRE definition
</h1>
<p>
You can add any number of JRE definitions.
</p>
<ol>
<li>
From the menu bar, select <strong>Window</strong> &gt; <strong>Preferences.</strong>
</li>
<li>
In the left pane, expand the <strong>Java</strong> category and select <strong>Installed JREs</strong>.
</li>
<li>
Click the&nbsp;<strong>Add...</strong> button. The Create JRE dialog opens.
</li>
<li>
In the <strong>JRE type</strong> field, select the type of JRE you want to add from the drop-down list.
</li>
<li>
In the&nbsp;<strong>JRE name</strong> field, type a name for the new JRE definition. All JREs of the same type must have a unique name.
</li>
<li>
In the&nbsp;<strong>JRE home directory</strong> field, type or click&nbsp;<strong>Browse</strong> to select the path to the root
directory of the JRE installation (usually the directory containing the&nbsp;<em>bin</em> and&nbsp;<em>lib</em> directories for the JRE). This location is checked
automatically to make sure it is a valid path.
</li>
<li>
In the&nbsp;<strong>Javadoc URL</strong> field, type or click&nbsp;<strong>Browse</strong> to select the URL location. The location is
used by the Javadoc export wizard as a default value and by the 'Open External Javadoc' action.
</li>
<li>
If you want to use the default libraries and source files for this JRE, select the <strong>Use default system libraries</strong> check box. Otherwise,
clear it and customize as desired. Source can be attached for the referenced JARs as well.
</li>
<li>
Click&nbsp;<strong>OK</strong> when you are done.
</li>
</ol>
<p>
<img src="../images/ngrelc.gif" alt="Related concepts" border="0" height="27" width="159"> <br>
<a href="../concepts/concepts-1.htm">Java development tools (JDT)</a>
</p>
<p>
<img src="../images/ngrelt.gif" alt="Related tasks" border="0" height="27" width="159"><br>
<a href="tasks-JREs.htm">Working with JREs</a><br>
<a href="tasks-120.htm">Assigning the default JRE for the workbench</a><br>
<a href="tasks-123.htm">Editing a JRE definition</a><br>
<a href="tasks-122.htm">Overriding the default system libraries for a JRE definition</a>
</p>
<p>
<img src="../images/ngrelr.gif" alt="Related reference" border="0" height="27" width="159"><br>
<a href="../reference/ref-19.htm">Installed JREs preference page</a>
</p>
<p>
<a href="../hglegal2003.htm">
<img src="../images/ngibmcpy2003.gif" alt="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." border="0" height="14" width="324"></a>
</p>
</body>
</html>