This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set environment variables for tomcat?

 
swapna ch
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
swapna ch
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
re-read William's step #3, and get back to us.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic