A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
Other Open Source Projects
JavaService - service runs but doesn't do anything
Joined: Oct 11, 2004
Oct 23, 2007 05:33:00
With reference to this:
Command for installing service:
JavaService.exe -install "My Service" C:\Program Files\Java\jdk1.6.0_02\jre\bin\server\jvm.dll -start MyTestService -out c:\app\stdout.txt -err c:\app\stderr.txt
When I run this command, I get a message: The My Service automatic service was successfully installed.
When I run this service from windows service console, I get following alert: The service started and stopped. Some service start and stop because they have nothing to do...
But when I see the log file/output file (c:\app\stdout.txt), I don't see SOPs which are there in main method of MyTestService.java.
What can go wrong?
Joined: May 05, 2013
May 05, 2013 13:03:01
i do have the same problem,
did you find a solution,
i know this was in 2004, but i would like to ask.
rocket mass heater
subject: JavaService - service runs but doesn't do anything
Where are my console messages
Need Help starting Tomcat
Hello, but do you know how to manipulate NT Services in Java??
Install JBOSS as windows Service
change standard output to a file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014