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)
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).
An IDE is no substitute for an Intelligent Developer.