Hi ,
I noticed an interesting thing with
Tomcat or I must have missed something silly. So though of discussing it here.
I want to run tomcat 5.5 as service and it should use a specific JRE , not the one which is being pointed by JAVA_HOME environment varialbe.
To run Tomcat as service , there is a batch file named service.bat in the bin directory .With its help you can install/remove tomcat service instances as windows service.
Question is how do I pass it a different JRE then the one which is pointed by the environment variable JAVA_HOME.
I gone through the code of service.bat and found that it tries to identify the JRE and stores it in a variable PR_JVM , but never seem to use it. I can change the code to point PR_JVM to my jre , but how do I pass it to Tomcat5.exe so that it uses it. In the web also I could not find any good documentation about the usage of tomcat5.exe.
I was suppose to write to the tomcat developers and users mailing list , then though of writing to JR before doing so.
Any pointers would greatly be appreciated .
Thanks,
Rahul Bhattacharjee