• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to set environment variables for tomcat?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
re-read William's step #3, and get back to us.
reply
    Bookmark Topic Watch Topic
  • New Topic