-
Notifications
You must be signed in to change notification settings - Fork 69
/
ref-preferences-classpath-variables.htm
108 lines (107 loc) · 3.9 KB
/
ref-preferences-classpath-variables.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2008. 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>
Classpath Variables Preferences
</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" type="text/javascript"> </script>
</head>
<body>
<h1>
Classpath Variables Preferences
</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.svg" 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%" summary="Classpath variables">
<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-properties-build-path.htm">use a JRE System Library</a>.
</p>
<h3 class="related">Related concepts</h3>
<a href="../../../../concepts/concept-classpath-variables.htm">Classpath variables</a>
<h3 class="related">Related references</h3>
<a href="../../../preferences/java/ref-preferences-installed-jres.htm">Installed JREs</a>
</body>
</html>