Loading DLL in Java - Eclipse - JNI

Posted by alee on Stack Overflow See other posts from Stack Overflow or by alee
Published on 2010-03-29T03:43:51Z Indexed on 2010/03/29 3:53 UTC
Read the original article Hit count: 371

Filed under:
|
|

I am trying to load a dll in java using the following code System.loadLibrary("mydll");

The project is placed in D:\development\project\ and i have placed the dll on D:. I then gave following VM argument in eclipse configuration -Djava.library.path=D:/

But when i run i get UnsatisifiedLinkerError. After googling a bit, I used System.load("D:\mydll.dll");

but again getting the same problem, could someone can help?

© Stack Overflow or respective owner

Related posts about java

Related posts about jni