0
votes

I am integrating an API, where I have to post the request to the service provider. The service provider has given a .jar and .dll file to be included for the set-up. When I de-complie the .jar, I see that one of the files is trying to load the dll in a static block. static { System.loadLibrary("dllFile"); }

Now my problem is, the program gets stuck at the point of dll loading and ends abruptly.

I have Windows 7 64-bit system. Hence, I have put my dll file in SysWOW64(I have also tried putting the dll in System32, but that also did not help) and the jar is present in my jre/lib path, but this does not work Any pointers on what could be going wrong here.

Thanks, Akshay

1

1 Answers

0
votes

Start your program with an additional -Djava.library.path=<path to your dll>.

java -Djava.library.path=C:\path\to\dll -cp lotsofjars my.package.MainClass