Re: JAR, JNI and libraries



On Fri, 30 Sep 2005 10:51:39 +0200, Marcelo wrote:
> How Can i include a library inside a JAr file ?
> I have a jar file like this:
>
> >>jar ft prompt.jar
> META-INF/
> META-INF/MANIFEST.MF
> Prompt.class
> libPrompt.so
>
> and the System.loadLibrary("Prompt");

AFAIK your only option (someone please correct me otherwise) is to
copy the file from the jar to the local file system before attempting
to load it.

/gordon

--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
.



Relevant Pages

  • Re: jar question
    ... AFAIK this isn't going to work. ... Class-Path entry, which is a whitespace separated list of other ... the following entry in your main application jar manifest: ... Which would allow your main jar file to be run via the -jar option ...
    (comp.lang.java.programmer)
  • retrieve all interfaces in jar static possible
    ... I am curious to know if it is possible to extract all interfaces from my jar. ... I know of refelection but AFAIK the class has to be loaded in the jvm to use reflection on it. ... Is there a static possiblity? ...
    (comp.lang.java.programmer)
  • Re: And so it goes...
    ... If the foo sh1ts... ... JaR ... MCNGP.com never went to college ... Prev by Date: ...
    (microsoft.public.cert.exam.mcse)
  • Re: Job Search which is better MCSE 2k OR MCSE 2003
    ... We'll all be breathlessly awating the results of your quest. ... JaR ... Prev by Date: ...
    (microsoft.public.cert.exam.mcse)
  • Re: League Table
    ... Ooooohhh, Shiney! ... JaR ... MCNGP.com Dept of Envy! ... Prev by Date: ...
    (microsoft.public.cert.exam.mcse)