>>>>> "Arne Styve" <[EMAIL PROTECTED]>: > Thanks for your input. I'll give this a try. However, how do you > then use the JAR containing all the DLLs and .so's ? As far as I've > understood, you cannot access a DLL that is inside a JAR, and hence > you have to extract the DLLs from the JAR in order to use the > DLL. Is this correct ?
What I've done is to use dependency:unpack (see the maven-dependency-plugin http://maven.apache.org/plugins/maven-dependency-plugin/ ) to unpack jar files containing DLLs into a directory in the PATH of the VM that will use them from JNI. Shared libs for linux and Solaris takes a bit more work. dependency:unpack can unpack tar.gz files, but doesn't preserve the symlinks between different versions of the shared libs. See http://jira.codehaus.org/browse/MDEP-68 So for these platforms I've used dependency:copy to download and place the tar.gz files in a directory in the LD_LIBRARY_PATH of the VM that will use them from JNI, and then use exec:exec from exec-maven-plugin http://mojo.codehaus.org/exec-maven-plugin/plugin-info.html ) to unpack the tar.gz files using native tar. A bit clumsy, but it works. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
