File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Other Open Source APIs
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.
I agree. Here's the link:
subject: JavaService - service runs but doesn't do anything
change standard output to a file
Hello, but do you know how to manipulate NT Services in Java??
Where are my console messages
Install JBOSS as windows Service
Need Help starting Tomcat
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015