j'obtiens l'erreur suivante quand j'essaie de lancer mon programme java
:
Exception in thread "main" java.lang.UnsatisfiedLinkError: printCpp
at Test.TestJNI.printCpp(Native Method)
at Test.TestJNI.main(TestJNI.java:27)
quelqu'un pourrait il m'expliquer car je ne vois pas le probl=E8me, j'ai
m=EAme v=E9rifi=E9 dans ma DLL et la fonction Java_TestJNI_printCpp est
pr=E9sente.
Merci d'avance.
voici mon code
//TestJNI.java
/////////////////////////
public class TestJNI
{
public native void printCpp();
static
{
System.loadLibrary("MaLib");
}
public static void main(String [] args)
{
new TestJNI().printCpp();
System.out.println("JAVA");
}
}
//TestJNI.h
////////////////////////
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class TestJNI */