blob: a0a92be7579826336662ca4ee8033c0668741cb9 [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">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
<title>
Defining a classpath variable
</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>
Defining a classpath variable
</h1>
<p>
Classpath variables are stored global to the workbench; in other words, all projects in the workbench can share the classpath variables.
</p>
<p>
To add or change a class path variable, follow these steps:
</p>
<ol>
<li>
Open the
<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.ClasspathVariablesPreferencePage)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png">
<strong>Java &gt; Build Path &gt; Classpath Variables</strong></a>
preference page.
</li>
<li>
This page allows you to add, edit, or remove class path variables.
<ul>
<li>
To add a new class path variable, click the <strong>New...</strong> button. The New Variable Entry page opens.
</li>
<li>
To edit an existing class path variable, select the variable in the <strong>Defined class path variables</strong> list and click
the <strong>Edit...</strong> button. The Edit Variable Entry page opens. <em>Note: The reserved class path variables, JRE_LIB, JRE_SRC, and
JRE_SRCROOT cannot be edited in this page. To change them, change the default workbench JRE on 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.</em>
</li>
</ul>
Type a name for the variable in the <strong>Name</strong> field.
</li>
<li>
Type a path to be referenced by the variable in the <strong>Path</strong> field. You can also click the <strong>File</strong>
or <strong>Folder</strong> buttons to browse the file system.
</li>
<li>
Click <strong>OK</strong> when you are done. The new or modified variable appears in the <strong>Defined class path variables</strong> list on the Preferences page.
</li>
</ol>
<img src="../images/ngrelc.png" alt="Related concepts" border="0" >
<p>
<a href="../concepts/cclsspthv.htm">Classpath variables</a>
</p>
<p>
<img src="../images/ngrelt.png" alt="Related tasks" border="0" >
</p>
<p>
<a href="tasks-114.htm">Adding a variable class path entry</a><br>
<a href="tasks-116.htm">Attaching source to a class path variable</a><br>
<a href="tasks-11.htm">Creating Java elements</a><br>
<a href="tasks-118.htm">Deleting a class path variable</a>
</p>
<p>
<img src="../images/ngrelr.png" alt="Related reference" border="0" >
</p>
<p>
<a href="../reference/ref-15.htm">Classpath Variables preference page</a><br>
&nbsp;
</p>
</body>
</html>