Problème: Création du fichier d'entete *.h avec javah (JNI)
Après avoir tapé en ligne de commande:
Code:
javac G:\Eclipse\Projet\JNI\TestJni.java
OK pour la compilation.
ensuite:
Code:
javah -jni G:\Eclipse\Projet\JNI\TestJni
il me réponds:
Citation:
javadoc: error - Illegal name: "G:\Eclipse\Projet\JNI\TestJni"
je ne comprends pas...??
La compilation doit-etre loupée...!!
Mon but est de créer une JNI pour appeler une DLL....!!
code source utilisé:
Code:
1 2 3 4 5 6 7 8 9 10 11
| public class HelloWorld
{
static { System.loadLibrary("HelloWorld"); }
public static native void printCpp();
public static void main(String args[]) {
System.out.print("Hello: ");
HelloWorld.printCpp();
}
} |
cordialement.