Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using Java Service Wrapper

807607Aug 9 2006 — edited Jan 25 2007
Hi,

I run my App in Eclipse IDE. My App is in a package called Test & the dir structure is like this:

D:\eclipse\workspace\Workspace1\Test\Test

where the first 'Test' is the project name & the second 'Test' is the package name. I downloaded the Java SErvice Wrapper. Following the instructions in the page (" http://wrapper.tanukisoftware.org/doc/english/launch-win.html ") 'Launching your application (Win32)' , I created a 'bin' dir under the 'Test' package dir. Then I copied the files App.bat, InstallApp-NT.bat, UninstallApp-NT.bat & wrapper.exe to this 'bin' dir. After that, as said in the page, I replaced the word 'App' in the names of the batch files to 'JSWrapper' (where JSWrapper is the name of my class that implements WrapperListener). I also created a conf dir under 'Test' package dir & put 'wrapper.conf' in it. I haven't done any changes to this conf file. Also, in the JSWrapper class (which implements WrapperListener), I've implemented the 'start()', 'stop()' & 'controlEvent()' classes. Is this all I need to do to use JSWrapper to run the java program as a service or is there more to it? I ran the JSWrapper application using eclipse & also ran 'InstallApp-NT.bat'. Am able to see 'Test Wrapper Application' service running, but am unable to start it. Am I doing things right? Please guide me.


Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 22 2007
Added on Aug 9 2006
3 comments
338 views