• 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

tomcat 5.5/windows -- is not reading env vars

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

hi,

I'm having a weird problem.. downloaded tomcat 5.5, installed sdk/jre 1.5.0_22, set up env vars (JAVA_HOME, JRE_HOME, CATALINA_HOME)
yet when go to start tomcat (by running tomcat/bin/startup.bat) get told JAVA_HOME & JRE_HOME are not set, by they are set.. this on an XP machine, I have installed tomcat and set env vars in xp machines many times.. I don't get why it's not reading env vars (when type 'set' in DOS shell it does not show these two env vars, which I have set and can see when go to windows CP/system/advanced/env vars)

thank you..

 
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Windows maintains 2 sets of environment variables. System-wide variables and per-user variables. Usually, you can set your JAVA_HOME and Tomcat PATH variables in either place, but there can be cases where your command-line user ID isn't the same as your GUI user ID, in which case, the user variable settings won't come across.

You may actually find it more convenient to write a wrapper batch file that locally sets those variables then runs the tomcat commands (startup.bat or catalina.bat start).
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic