|
From: Leif M. <le...@ta...> - 2008-08-21 01:31:52
|
Jay, The Wrapper does not support that directly. But it can be made to work. 1) Extract your jar into a temporary directory and look in the META-INF/MANIFEST.MF file. There should be a main class listed. 2) Using your original jar file, go back and place the jar onto your classpath as usual. 3) Specify the class from the manifest as the main class in your configuration. 4) Do not specify the -jar parameter anywhere. wrapper.java.mainclass=<class from manifest> wrapper.java.classpath.1=../lib/bigjar.jar Note that the contents of the wrapper.jar will also be required to be placed into your jar file. If you are using method 1 it would look like this: wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp wrapper.java.classpath.1=../lib/bigjar.jar wrapper.app.parameter.1=<class from manifest> Let me know if you have any questions getting it working. Cheers, Leif On Thu, Aug 21, 2008 at 3:38 AM, <Jay...@sc...> wrote: > > Hi, > > If I am using method 3 for integration and I bundle all my code into a > single Jar file (using a library like jar jar links) so that from a command > line I would do something like: > > java -jar HelloWorld.jar > > Can I setup the wrapper.conf file to run with that? > > Thanks > Jay > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |