A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
subject: JavaService - service runs but doesn't do anything
Where are my console messages
Hello, but do you know how to manipulate NT Services in Java??
Need Help starting Tomcat
change standard output to a file
Install JBOSS as windows Service
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013