Usually im using Apache Tomcat’s catalina script to launch and start Apache Tomcat, but sometimes the script wont run because of not having JAVA_HOME variables on your OS environment variables or you cant add new environment variables due to lack of privileges.
So instead of adding JAVA_HOME variable into my OS, i set the JAVA_HOME on my catalina scripts. This is how i do it, i add this script on the top of catalina.bat file.
set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_07
Note, there is no space before and after “=” sign.
Easy isnt it 😉