Well. I need to convert an unsigned long int to IP. So, I use JNI. I've put the lib*.so into the /usr/java/j2sdk*/lib/i386. Then I run it into eclipse like default package and it works, but When I try to run it into eclipse using package, it's to say, if I include my libraries and class into a package the class doesn't work.
************************Jniprueba.java*********************** //package src; public class Jniprueba {
static { System.loadLibrary("MiLibreria"); }
private native String convert (long num);
/*public static void main (String args[]) { long i =3632836505L; Jniprueba jnifunction = new Jniprueba(); String result = jnifunction.convert(i); System.out.println("resultado: " + result); } */ }