blob: 111693618fa0d2c7c41909ae604d05d90c87301a [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<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">
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"> </script>
</head>
<body>
<h1>
Adding a new JRE definition
</h1>
<p>
You can add any number of JRE definitions.
</p>
<ol>
<li>
Open the
<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.debug.ui.preferences.VMPreferencePage)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png">
<strong>Java &gt; Installed JREs</strong></a> preference page.
</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> checkbox. 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.png" alt="Related concepts" border="0" > <br>
<a href="../concepts/concepts-1.htm">Java development tools (JDT)</a>
</p>
<p>
<img src="../images/ngrelt.png" alt="Related tasks" border="0" ><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.png" alt="Related reference" border="0" ><br>
<a href="../reference/ref-19.htm">Installed JREs preference page</a>
</p>
</body>
</html>