• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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: 24287
167
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).
 
Note to self: don't get into a fist fight with a cactus. Command this tiny ad to do it:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic