| 1 |
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<!-- |
| 5 |
|
| 6 |
Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved. |
| 7 |
|
| 8 |
This program and the accompanying materials are made available under the |
| 9 |
terms of the Eclipse Public License v. 2.0, which is available at |
| 10 |
http://www.eclipse.org/legal/epl-2.0. |
| 11 |
|
| 12 |
This Source Code may also be made available under the following Secondary |
| 13 |
Licenses when the conditions for such availability set forth in the |
| 14 |
Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| 15 |
version 2 with the GNU Classpath Exception, which is available at |
| 16 |
https://www.gnu.org/software/classpath/license.html. |
| 17 |
|
| 18 |
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| 19 |
|
| 20 |
--> |
| 21 |
|
| 22 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| 23 |
<meta name="Author" content="JavaSoftware"> |
| 24 |
<meta name="GENERATOR" content="Mozilla/4.61 [en] (WinNT; U) [Netscape]"> |
| 25 |
<title>NT Classpath</title> |
| 26 |
</head> |
| 27 |
<body> |
| 28 |
Environment variables are administered on Windows NT from the |
| 29 |
<b>System |
| 30 |
Properties</b> Control Panel settings (Start->Settings->Control Panel; |
| 31 |
it's the <b>System</b> icon in the Control Panel). The <b>Environment</b> |
| 32 |
tab contains all of the System and User Variables. |
| 33 |
<p>System Variables exist for all users while User Variables only exist |
| 34 |
for the current user. Only users with Administrator privileges are able |
| 35 |
to define System Variables. For this example, environment variables will |
| 36 |
be defined as User Variables. |
| 37 |
<p>If this is the first time the CLASSPATH environment variable is being |
| 38 |
defined, select the first User Variables entry (its name/value pair will |
| 39 |
show up below the User Variables list). Enter 'CLASSPATH' in the 'Variable:' |
| 40 |
text edit field. |
| 41 |
<p>If the CLASSPATH environment variable has already been previously defined, |
| 42 |
simply select it from the User Variables list. |
| 43 |
<p>There are a couple of ways of adding something to an environment variable. |
| 44 |
It can be added directly, or through the use of a separately defined environment |
| 45 |
variable. |
| 46 |
<p>When the Jakarta Mail and Java Activation Framework (JAF) jar files are |
| 47 |
added directly to the CLASSPATH, the Value field should contain (for example) |
| 48 |
".;D:\Java\jakartamail\jakarta.mail.jar;D:\Java\jaf\jakarta.activation.jar". |
| 49 |
<p><img SRC="images/direct-classpath.jpg" height=466 width=410> |
| 50 |
<br> |
| 51 |
<p>When the Jakarta Mail and Java Activation Framework (JAF) jar files are |
| 52 |
added to the CLASSPATH using separate environment variables, the Value |
| 53 |
field should contain (for example) ".;%JAKARTAMAIL_JAR%;%JAF_JAR%" |
| 54 |
<br> |
| 55 |
<p><img SRC="images/indirect-classpath.jpg" height=466 width=410> |
| 56 |
<br> |
| 57 |
<p>Once you have finished updating the Value field, you must press the |
| 58 |
Set button. Then press OK. It is not necessary to reboot or log out, however |
| 59 |
these new settings will only be present in new Command Prompt windows. |
| 60 |
Any existing windows must be closed and reopened for the new settings to |
| 61 |
take effect. Any running Java applications which inherit the system CLASSPATH |
| 62 |
also need to be restarted. |
| 63 |
</body> |
| 64 |
</html> |