I'm just starting to learn JNI. I followed a simple example, and I created a Java application that calls the Hello World method in a native library. I would like to target Win32 and Linux x86.
My library is in a DLL, and I can name it just fine using LoadLibrary when a DLL is added to the root of my Eclipse project.
However, I cannot figure out how to get Eclipse to export an executable JAR that includes a DLL and a .SO file for Linux.
So my question is basically; how would you like to create a project in Eclipse and include multiple versions of the same native library?
Thanks,
Martin
java linux windows cross-platform jni
Martin wiboe
source share