Does anyone know how to get the WinRun4J service example (ServiceTest class that is distributed with the software) to run? I'm on a Windows 7 box, 64 bit, and have the Java 7 JDK and JRE installed.
I performed the following:
- Copied
WinRun4J64c.exe
toC:\test
, renamed itservice64.exe
- Copied
service.ini
to C:\test, renamed itservice64.ini
- Finally, I copied
WinRun4JTest.jar
toC:\test
.
First off, you have to run a command prompt as Administrator, otherwise you can't register the service. So in a command prompt, opened as Administrator, I entered the command:
C:\Test>service64.exe --WinRun4J:RegisterService
So far so good. But when I go to the Windows services panel to start the service, I get the error:
"Error 1053: service did not respond ... in a timely fashion"
Any ideas?
Thanks