...
Create a file called setenv.bat with the following contents using a plain text editor such as notepad,
Code Block | ||
---|---|---|
| ||
SET JRE_HOME=C:\opt\apache\java |
...
Now, we will update the registry to point to a specific version of Java,
Code Block | ||
---|---|---|
| ||
cd C:\opt\apache-tomcat-6.0.26-a_32-bit\bin tomcat6.exe //US//Tomcat6a --JavaHome=C:\opt\jre1.6.0_20_32-bit tomcat6.exe //US//Tomcat6a --Jvm=C:\opt\jre1.6.0_20_32-bit\bin\client\jvm.dll |
...
The registry entry equates to automatically running the following command upon login,
Code Block | ||
---|---|---|
| ||
tomcat6w.exe "//MS//Tomcat Instance tomcat-a" |
...