Accessing DLL from web application using JNA
843829Feb 20 2008 — edited Feb 22 2008Hello,
for some it will probably be a stupid question, but for me it's getting me stuck for long days on the computer trying to solve it without luck.
As a background for it, I have successfully accessed a third-party DLL through a console Java application using JNA. But for the same code and for the same inputs - to the DLL -, it isn't working from a web application environment. I've tried to set both the 'java.library.path' and the 'jna.library.path' to point to the location of the DLLs; but I have no results from them, and also I don't have any errors complaining about UnsatisfiedLinkError or similar, so I guess its "probably" being loaded correctly.
I've investigaded all sorts of things about classpath problems, VM's setting parameters, conflicting DLLs on the same computer, Eclipse's working mode - since I use it for development, although the DLL doesn't work either on production - , but I haven't found a suitable answer for it, and it's getting really frustrating, mostly because I can make it work under a console application. I suppose if it were a classpath problem it would raise the unsatisfiedlinkerror, but it seems to load properly since it calls the DLL and it gets no error, the only thing is that I have no results from it - I repeat: the inputs are the same than for the console app -.
For me it's really strange, and for the client it's really annoying - same for me -.
So if anyone has any clue about it I would be really happy... I'm stuck on it and for me it's over.
Really really thank you very much....