aspose file tools*
The moose likes Tomcat and the fly likes How to set environment variables for tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to set environment variables for tomcat?" Watch "How to set environment variables for tomcat?" New topic
Author

How to set environment variables for tomcat?

swapna ch
Greenhorn

Joined: Nov 30, 2003
Posts: 4
Hi all,
I am new to Jakarta-Tomcat 5.0. I installed and set the environment variable as Tomcat_Home pointing to jakarata-tomcat dir. I even tried Catalina_Home pointing to the dir. But when i start the server my command prompt gets closed. Can anyone explain me what to do exactly to startup the server?. Please help me.
Thanks
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
1. Note that those names are case sensitive so you want CATALINA_HOME and JAVA_HOME
2. Run the startup.bat from a Command Prompt window - NOT by clicking on it.
3. If a window opens and then immediately closes, change the line in startup.bat
call "%EXECUTABLE%" start %CMD_LINE_ARGS%
to
call "%EXECUTABLE%" run %CMD_LINE_ARGS%
This will cause the catalina.bat to continue in the open window. Hopefully an error message that makes sense will be preserved.
4. If you still can't figure it out, comment out the @echo off line at the start of catalina.bat to get a full listing.
Bill


Java Resources at www.wbrogden.com
swapna ch
Greenhorn

Joined: Nov 30, 2003
Posts: 4
Actually i have set the enviornment variables in caps and tried doing startup from the commandprompt. I dont know why my command prompt closes as soon as i try to start up. Did you get what I am saying??? I would appreciate if anyone can help me on this
Thanks
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

re-read William's step #3, and get back to us.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set environment variables for tomcat?
 
Similar Threads
tomcat problem
image of jsp in the jboss
Could not create type jwsc due to java.lang.NoClassDefFoundError
how to install apache tomcat 5.5
Tomcat stop issue using ant