set JAVA_HOME=d:jdk1.3set TOMCAT_HOME=d:tomcat32 After you code the assignments, you need to restart your machine or execute your autoexec.bat file to make the variable assignments. If you are running Windows 2000 or Windows NT, you can use the System Properties control panel to set these environment variables. From your Start button, select Settings @@> Control Panel @@> System @@> Environment. Figure C-3 shows the Environment control panel. Figure C-3: The Windows NT Environment control panel If you find existing entries for environment variables in the control panel, you may click the entry to view and edit its value as necessary. Click OK or Apply to set the variables. Caution Be careful when setting environment variables in command windows. Windows starts a separate process for each command window opened. Therefore, if you issue a SET command to assign environment variables values in one window, the variables have these values when executing programs from within this command window only. Placing your SET commands in your autoexec.bat file or setting variable values in the control panel makes the values known to all processes. Okay, you re almost home. With the Tomcat environment variables set, you are ready to test your Tomcat installation. Testing Your Tomcat Installation The directory TOMCAT_HOMEbin contains several startup and shutdown files. The files you are interested in are called startup.bat and shutdown.bat. First, run the startup file by double-clicking its icon or running the file from a command window. Once you execute the startup file, you should see two windows that resemble those shown in Figure C-4.
We provides quality the CPanel Web Hosting. All our web hosting plans regular, business and expert are competitively priced and unsurpassed in reliability, uptime, and quality of service.