The concrete steps here
Http://www.doc88.com/p-360144091164.html
Error encountered:
JVM did not exit on request, terminated
Address it in the following way
ImportOrg.tanukisoftware.wrapper.WrapperActionServer; ImportOrg.tanukisoftware.wrapper.WrapperManager; ImportOrg.tanukisoftware.wrapper.WrapperListener; ImportOrg.tanukisoftware.wrapper.event.WrapperEventListener; Public classHelloWorldImplementswrapperlistener{PrivateHelloWorld () {} PublicInteger Start (string[] args) {System.out.println ("Start ()" ); Try{System.out.println ("Helloworld!"); } Catch(Exception e) {}return NULL; } Public intStopintExitCode) {System.out.println ("Stop (" + ExitCode + ")" ); returnExitCode; } Public voidControlEvent (intevent) {System.out.println ("ControlEvent (" + Event + ")" ); } Public Static voidMain (string[] args) {System.out.println ("Initializing ..." ); Wrappermanager.start (NewHelloWorld (), args); }
Java Programs for Windows services