Thanks for the all your suggestions,

How about running service.bat and registering tomcat7.exe as windows service , the one for which I already have a copy,

Below is the output I get,


C:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.11\bin>service.bat
 install tomcat7.exe
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
Service will try to guess them from the registry.
Installing the service 'tomcat7.exe' ...
Using CATALINA_HOME: "C:\Program Files\Apache Software Foundation\Apache Tomc
at 7.0.11"
Using CATALINA_BASE: "C:\Program Files\Apache Software Foundation\Apache Tomc
at 7.0.11"
Using JAVA_HOME:        ""
Using JRE_HOME:         ""
Using JVM:              "auto"
Failed installing 'tomcat7.exe' service

C:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.11\bin>

and when check java home/jre variables, I see its already defined,


C:\Users\kiran>echo %JRE_HOME%
C:\Program Files\Java\jre6

C:\Users\kiran>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_26

am I understanding something incorrect here ?





I just did some google and feel that there might be some
On 4/28/2012 5:01 PM, André Warnier wrote:
Jacques Desodt wrote:
Hi Kiran,

On Windows 7, you can't run batch files as services.
See :
http://stackoverflow.com/questions/8972679/windows-7-bat-file-not-starting-as-a-service

Your first step : compile the .bat file into .exe
Then create the service, and after change the service register values with
regedit.

I think that it is a bit more complicated that that.
A .bat file compiled to a .exe will still not work properly as a Windows service.

The standard Tomcat installation for Windows does it right, by providing a correct "service wrapper" for the JVM which runs Tomcat. The OP would probably, in the end, save himself some time by installing a proper Tomcat-as-a-Windows-service from the Tomcat website, and then arrange for Netbeans to talk to that one.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to