Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Accessing DLL from web application using JNA

843829Feb 20 2008 — edited Feb 22 2008
Hello,

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....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 21 2008
Added on Feb 20 2008
3 comments
396 views