6 messages in net.java.dev.jna.usersRe: [jna-users] Accessing DLL from we...
FromSent OnAttachments
idmnified .Feb 20, 2008 1:36 pm 
Timothy WallFeb 21, 2008 6:18 am 
idmnified .Feb 21, 2008 4:51 pm 
Timothy WallFeb 21, 2008 5:52 pm 
idmnified .Feb 24, 2008 5:18 pm 
Timothy WallFeb 25, 2008 6:38 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Accessing DLL from web applicationActions...
From:Timothy Wall (twal@dev.java.net)
Date:Feb 21, 2008 6:18:29 am
List:net.java.dev.jna.users

On Feb 20, 2008, at 4:37 PM, idmnified . wrote:

I successfully use a third-party DLL from a console Java application - thanks to some indications you gave me some time ago in this mailing list -; but it's being impossible to make it work on a web application.

That could mean an applet or web start. Both would have to be signed in order for JNA to access its native library bits.

I'm setting both the 'java.library.path' and 'jna.library.path' as parameters for the VM to point to the location of the DLLs. But I get no results for the same inputs as the console application, and I get no error complaining about the loading process of the DLLs.

JNA will throw an UnsatisfiedLinkError if it can't find its own native libraries, and Native.loadLibrary will throw UnsatisfiedLinkError if it can't find your 3rd-party lib under jna.library.path.