|
From: Leif M. <le...@ta...> - 2003-03-14 02:40:06
|
Fred,
The Wrapper does not directly support the running of Jar files. But
that said, you
can still easily use the wrapper to run you application. When Java runs
a jar file, it
does so by looking up the main class using the Manifest file of the Jar.
It then
executes that normally.
So to get your application running with the Wrapper, you will need
to extract the
contents of the jar file into a temp directory and open the
META-INF/MANIFEST.MF
If you are using WinZip or something, you may be able to just open the
jar file as if
it was a Zip file and fire the file from within the jar.
You should see a line like the following:
Main-Class: {classname}
Once you have this main class, delete the extracted jar files and
use the jar as
usual.
Following the directions on the integration page, you can then use
this class
as the main class of your application and integrate the app as usual.
Let me know if you have any problems getting this working. Probably
need
to add a note about this in the docs.
Cheers,
Leif
Fred Toth wrote:
> Hi all,
>
> I've just found my way to wrapper and I've got WrapperSimpleApp working
> fine when I am running a class, but what about "java -jar"? I couldn't
> find
> anything in the examples or doc that addressed this, and I can't quite
> figure out how the java -jar model maps into the config file.
>
> Can anyone point me?
>
> For reference, here's the command I'm trying to wrap (broken into lines
> for viewing). This is Sun's JavaSpaces stuff:
>
> java
> -jar
> -Djava.security.policy=\\server\web_d\javalib\jini\policy\policy.all
> -Djava.rmi.server.codebase=http://192.168.7.106:8080/outrigger-dl.jar
> -Dcom.sun.jini.outrigger.spaceName=djobs
> \\server\web_d\javalib\jini\transient-outrigger.jar
> public
>
> The next to last line is the catch. WrapperSimpleApp expects a class
> and I don't have one!
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> Fred Toth
> ft...@sy...
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open! Get
> cracking and register here for some mind boggling fun and the chance
> of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
|