| <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> | |
| <html> | |
| <head> | |
| <!-- | |
| Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved. | |
| This program and the accompanying materials are made available under the | |
| terms of the Eclipse Public License v. 2.0, which is available at | |
| http://www.eclipse.org/legal/epl-2.0. | |
| This Source Code may also be made available under the following Secondary | |
| Licenses when the conditions for such availability set forth in the | |
| Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | |
| version 2 with the GNU Classpath Exception, which is available at | |
| https://www.gnu.org/software/classpath/license.html. | |
| SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | |
| --> | |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
| <meta name="Author" content="JavaSoftware"> | |
| <meta name="GENERATOR" content="Mozilla/4.61 [en] (WinNT; U) [Netscape]"> | |
| <title>NT Classpath</title> | |
| </head> | |
| <body> | |
| Environment variables are administered on Windows NT from the | |
| <b>System | |
| Properties</b> Control Panel settings (Start->Settings->Control Panel; | |
| it's the <b>System</b> icon in the Control Panel). The <b>Environment</b> | |
| tab contains all of the System and User Variables. | |
| <p>System Variables exist for all users while User Variables only exist | |
| for the current user. Only users with Administrator privileges are able | |
| to define System Variables. For this example, environment variables will | |
| be defined as User Variables. | |
| <p>If this is the first time the CLASSPATH environment variable is being | |
| defined, select the first User Variables entry (its name/value pair will | |
| show up below the User Variables list). Enter 'CLASSPATH' in the 'Variable:' | |
| text edit field. | |
| <p>If the CLASSPATH environment variable has already been previously defined, | |
| simply select it from the User Variables list. | |
| <p>There are a couple of ways of adding something to an environment variable. | |
| It can be added directly, or through the use of a separately defined environment | |
| variable. | |
| <p>When the JavaMail and Java Activation Framework (JAF) jar files are | |
| added directly to the CLASSPATH, the Value field should contain (for example) | |
| ".;D:\Java\javamail-1.2\mail.jar;D:\Java\jaf-1.0.1\activation.jar". | |
| <p><img SRC="images/direct-classpath.jpg" height=466 width=410> | |
| <br> | |
| <p>When the JavaMail and Java Activation Framework (JAF) jar files are | |
| added to the CLASSPATH using separate environment variables, the Value | |
| field should contain (for example) ".;%JAVAMAIL_JAR%;%JAF_JAR%" | |
| <br> | |
| <p><img SRC="images/indirect-classpath.jpg" height=466 width=410> | |
| <br> | |
| <p>Once you have finished updating the Value field, you must press the | |
| Set button. Then press OK. It is not necessary to reboot or log out, however | |
| these new settings will only be present in new Command Prompt windows. | |
| Any existing windows must be closed and reopened for the new settings to | |
| take effect. Any running Java applications which inherit the system CLASSPATH | |
| also need to be restarted. | |
| </body> | |
| </html> |