| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html> |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2007. 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> |
| Classpath variables |
| </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> |
| Classpath variables |
| </h1> |
| <h2 class="Head"> |
| Configurable variables |
| </h2> |
| <p> |
| Classpath variables can be used in a Java Build Path to avoid a reference to the local file system. Using a variable entry, the classpath only contains a variable and the |
| build path can be shared in a team. |
| The value of such variables is configured on 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" alt="Opens the Classpath Variables preference page"> |
| <b>Java > Build Path > Classpath Variables</b></a> preference page. |
| </p> |
| <table border="1" cellspacing="0" cellpadding="5" width="100%"> |
| <caption> |
| <br> |
| </caption> |
| <tr> |
| <th> |
| <p> |
| Command |
| </p> |
| </th> |
| <th> |
| <p> |
| Description |
| </p> |
| </th> |
| </tr> |
| <tr> |
| <td valign="top"> |
| <p> |
| <strong>New...</strong> |
| </p> |
| </td> |
| <td valign="top"> |
| <p> |
| Adds a new variable entry. In the resulting dialog, specify a name and path for the new variable. You can click the <strong>File</strong> |
| or <strong>Folder</strong> buttons to browse for a path. |
| </p> |
| </td> |
| </tr> |
| <tr> |
| <td valign="top"> |
| <p> |
| <strong>Edit...</strong> |
| </p> |
| </td> |
| <td valign="top"> |
| <p> |
| Allows you to edit the selected variable entry. In the resulting dialog, edit the name and/or path for the variable. You can click the <strong>File</strong> |
| or <strong>Folder</strong> buttons to browse for a path. |
| </p> |
| </td> |
| </tr> |
| <tr> |
| <td valign="top"> |
| <p> |
| <strong>Remove</strong> |
| </p> |
| </td> |
| <td valign="top"> |
| <p> |
| Removes the selected variable entry. |
| </p> |
| </td> |
| </tr> |
| </table> |
| <h2 class="Head"> |
| Reserved class path variables |
| </h2> |
| <p> |
| Certain class path variables are set internally and can not be changed in the Classpath variables preferences: |
| </p> |
| <ul> |
| <li> |
| JRE_LIB: The archive with the runtime JAR file for the currently used JRE. |
| </li> |
| <li> |
| JRE_SRC: The source archive for the currently used JRE. |
| </li> |
| <li> |
| JRE_SRCROOT: The root path in the source archive for the currently used JRE. |
| </li> |
| </ul> |
| <p> |
| These variables are deprecated and should not be used anymore. Instead <a href="ref-123.htm">use a JRE System Library</a>. |
| </p> |
| <p> |
| <img src="../images/ngrelc.png" alt="Related concepts" > |
| </p> |
| <p> |
| <a href="../concepts/cclsspthv.htm">Classpath variables</a> |
| </p> |
| <p> |
| <img src="../images/ngrelr.png" alt="Related reference" > |
| </p> |
| <p> |
| <a href="ref-18.htm">Installed JREs</a> |
| </p> |
| |
| </body> |
| </html> |
| |