DoTaL

My repository for development tidbits, and a few personal anecdotes

Set the JVM for Tomcat 5.x to a value different from JAVA_HOME

Posted by doubleA on February 2, 2007

While most of my development is done in Java 1.4, I wanted to play around with 1.5 a while back. In order to run Tomcat with 1.5 but keeping JAVA_HOME pointing to 1.4, I created a simple batch file to setup the JAVA_HOME and CATALINE_HOME directories. There is a separate Tomcat installation so that I can have Java 1.5 features and jars installed there.


echo Setting values for Java5
set JAVA_HOME=d:\dev\jdk1.5.0_05
set CATALINA_HOME=d:\dev\tomcat50Java5
echo Set values
echo Starting server
startup.bat

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>