Re: JAR, JNI and libraries



On Fri, 30 Sep 2005 10:51:39 +0200, Marcelo <info@xxxxxxxxxxxx> wrote
or quoted :

> >>jar ft prompt.jar
>META-INF/
>META-INF/MANIFEST.MF
>Prompt.class
>libPrompt.so
>
>and the System.loadLibrary("Prompt");

I have done it with JAWS, but I don't know if it is legal otherwise.
With JAWS it is quite slick. You can put in BOTH a DLL for windows and
a libxxx.so for Linux and JAWS will load the correct one for the
platform. You tell JAWS what you have in a resource statement in your
JNLP file.

I would put Prompt in a package. libPrompt.so would NOT go in one.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.



Relevant Pages

  • Re: javaws and hsqldb distribution
    ... to do is include the class files in your jar or an aux jar. ... You can use JAWS to ensure all the jars are available, or use an installer to make sure the jar is on the classpath. ... I just remembered that I can keep all of my database related files, as you mentioned Roedy, in a jar file. ...
    (comp.lang.java.help)
  • Re: Yet Another Web Application Mess...
    ... >Imagine having to update a Swing application on ... >every workstations in your company each time ... JAWS! ... Canadian Mind Products, Roedy Green. ...
    (comp.lang.java.programmer)
  • Re: Starting a java class through a bat file
    ... It is much simpler if you package your classes into a Jar. ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.programmer)
  • Re: Dynamically load jar resources
    ... >But I also want to allow the user to select another .jar file to use, ... They don't have to match the package names of any ... Then put an index in your main jar to all your other jars. ... Canadian Mind Products, Roedy Green. ...
    (comp.lang.java.help)
  • Re: exceptions that shouldnt be while trying to display a signed JApplet using the appletviewer
    ... Put every class in a jar in a package. ... invite trouble when you code in a non-idiomatic way. ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.programmer)