I am trying to use a .jar libary that needs a .dll file (that uses a dll file
itself) for some Java-Projects,
but for some reason I get an exception every time.
If I add the libary to the build path (referenced libaries),
I get an UnsatisfiedLinkError: no wiiuse.dll in java.library.path exception,
then I have tried the following options, but nothing worked:
1) Add the directory of the two dll files to the native libary tab of the .jar file.
->this leads to an "Cant find dependent libaries" exception (eclipse does not find the second .dll file).
to add the directory of the dll files to the Systems PATH variable, no effect,
OR trying System.loadLibrary(); for both .dll files , no effect either.
Javin Paul Messages: 48 Registered: July 2011 Location: mumbai
Did you checked your java.library.path, dll are get picked from here. you can also try running your Java program from command prompt to isolate the problem, I mean if this is only happening in case you are running Java program from eclipse.
try running "java -Djava.library.path= "path to dll"