JavaSercer Pages 4.2.1 Windows Platforms The Windows files (Web hosting linux)
JavaSercer Pages 4.2.1 Windows Platforms The Windows files are named startup.bat, shutdown.bat, and tomcat.bat. The tomcat.bat file is the main script for controlling the server; it’s called by the two other scripts startup.bat and shutdown.bat. To start the server in a separate window, change directory to the bin directory and run the startup.bat file: C:Jakarta> cd jakarta-tomcatbin C:Jakartajakarta-tomcatbin> startup A new Command Prompt window pops up and you see startup messages like this: 2000-09-01 09:27:10 - ContextManager: Adding context Ctx( /examples ) 2000-09-01 09:27:10 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2000-09-01 09:27:10 - ContextManager: Adding context Ctx( ) 2000-09-01 09:27:10 - ContextManager: Adding context Ctx( /test ) 2000-09-01 09:27:13 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2000-09-01 09:27:13 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 Just leave this window open; this is where the server process is running. If you’re running on a Windows 95 or 98 platform, you may see an error message about “Out of environment space” when you try to start the server. That’s because the default amount of space allocated for environment variables is not enough. To change this default, run this command in the Command Prompt window before you run the startup.bat file again: C:Jakartajakarta-tomcatbin> COMMAND.COM /E:4096 /P This command sets the environment space to 4096 bytes (4 KB). That should be enough for the server. However, If you still get the same message, use a higher value. For some installations, this command may not work. If it doesn’t work, try this instead: 1. Close the Command Prompt window and open a new one. 2. Click on the MS-DOS icon at the top-left of the window. 3. Select the Properties option. 4. Click on the Memory tab. 5. Change the Initial Environment value from Auto to 4096. 6. Click on OK and try to start the server again. At this point, the server may not start due to other problems. If so, the extra Command Prompt window may pop up and then disappear before you have a chance to read the error messages. If this happens, you can let the server run in the Command Prompt window with this command instead: C:Jakartajakarta-tomcatbin> tomcat run On Windows NT, first make sure that the Command Prompt window has a large enough screen buffer so that you can scroll back in case the error messages don’t fit on one screen. Open the Properties window for the Command Prompt window (right mouse button in the upper-left corner), select Layout, and set the screen buffer size height to a large value (for instance 999). Unfortunately, the Command Prompt screen buffer cannot be enlarged for Windows 95/98, so scrolling back is not an option. If you run into problems on these platforms, double-check that you have installed the Java SDK correctly and that you have set the JAVA_HOME and PATH environment variables as described earlier. page 37
Note: If you are looking for good and affordable webspace to host and run your servlet application check Virtualwebstudio servlet hosting services