Can anyone tel me why this dosent work, i have to classes:
Class 1:
public class Cmethods {
public native void AttachToServer();
}
Class 2:
public class RPCClient {
public static void main(
String[] args) {
System.out.println("Indl�ser maskin kode");
try {
System.loadLibrary("MML32DLL.dll");
} catch (Error e) {
System.out.println("Fejl ved indl�sning af maskinkode: " + e);
System.exit(1);
}
System.out.println("Opretter objekt.");
Cmethods objekt = new Cmethods();
System.out.println("Kalder metode implementeret i maskinkode.");
objekt.AttachToServer();
System.out.println("lige efter kald til attach");
}
}
I call my program from the dos prompt:
java -Djava.libary.path=. -classpath . RPCClient
I get this exception:
java.lang.UnsatisfiedLinkError: no MML32DLL.dll in java.library.path
I don�t understand this exception, becouse my Dll is in the same path as my class files in the directory, where im running my application, and i got the libary.path ???
Help !!!