JNI - unable to find a dll
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Zaphod_Beeblebrox
Posted On:   Tuesday, August 15, 2006 05:28 AM

Hi!

You might find this a silly question...

I have the following error message:
java.lang.UnsatisfiedLinkError: no mydll.dll in java.library.path

But I have set up correctly the environment variables and put the dll at the right place so that the JVM should find it.

I have also checked that the dll is in the locations displayed by
System.getProperty("java.library.path")

I must be missing something...

Thanks, in advance, for your help.

Philippe

Re: JNI - unable to find a dll

Posted By:   Robert_Lybarger  
Posted On:   Tuesday, August 15, 2006 11:14 PM

Been a while since I've played with JNI ... they've changed the tools a tad. Anyway... what's the value of your Class.forName parameter in your source code, the value of your java.library.path property (dump the value just prior to loading that library), and what's the full path on your file system to mydll.dll file? (If on windows, any chance you've tried dropping the dll file into your system or system32 windows directory and running it?)
About | Sitemap | Contact