<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <!-- DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 2 only ("GPL") or the Common Development and Distribution License("CDDL") (collectively, the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html or packager/legal/LICENSE.txt. See the License for the specific language governing permissions and limitations under the License. When distributing the software, include this License Header Notice in each file and include the License file at packager/legal/LICENSE.txt. GPL Classpath Exception: Oracle designates this particular file as subject to the "Classpath" exception as provided by Oracle in the GPL Version 2 section of the License file that accompanied this code. Modifications: If applicable, add the following below the License Header, with the fields enclosed by brackets [] replaced by your own identifying information: "Portions Copyright [year] [name of copyright owner]" Contributor(s): If you wish your version of this file to be governed by only the CDDL or only the GPL Version 2, indicate your decision by adding "[Contributor] elects to include this software in this distribution under the [CDDL or GPL Version 2] license." If you don't indicate a single choice of license, a recipient has the option to distribute your version of this file under either the CDDL, the GPL Version 2 or to extend the choice of license to its licensees as provided above. However, if you add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the option applies only if the new code is made subject to such option by the copyright holder. --> <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>