estoy usando el siguiente código para cargar un archivo DLL en JNA (código irrelevante se queda fuera):JNA UnsatisfiedLinkError, pero jna.library.path se establece
public class JNAMain {
public interface PointShapeBuffer extends Library { ... }
public static void main(String[] args){
System.setProperty("jna.library.path", "c:\\jnadll");
System.setProperty("java.library.path", "c:\\jnadll");
PointShapeBuffer jna = (PointShapeBuffer) Native.loadLibrary("FileGDBAPI", PointShapeBuffer.class);
}
}
Y me sale el siguiente error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'FileGDBAPI': The specified module could not be found.
También he intentado configurar los argumentos VM. Cualquier sugerencia seria genial.
Editar: Como referencia, estoy usando una biblioteca disponible públicamente here (es necesario registrarse).
¿Ventanas? Linus? PATH configurado para incluir lib compartido en Windows? LD_LIBRARY_PATH en Linux? – bmargulies
Esto es Windows 7. La variable de entorno PATH se ha cambiado para incluir "C: \ jnadll", pero sigo recibiendo el error. – Dave86
Mismo problema aquí. Puedo cargar user32.dll muy bien, pero vomita al tratar de cargar cualquier archivo DLL de Windows de 32 bits, sin importar dónde los ponga/cómo les señalo la ruta. –