6 messages in net.java.dev.jna.usersAccessing DLL from web application
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:Accessing DLL from web applicationActions...
From:idmnified . (idmn@gmail.com)
Date:Feb 21, 2008 4:51:16 pm
List:net.java.dev.jna.users

Hello again,

thanks a lot for the point. I've searched across the mailing list and seen some questions regarding Webstart and signing jars, so I'll check it out; and it's my fault so sorry for not looking broader, I was stuck on the idea that it should be the same calling from a servlet than from a console app.

I'll check it out, thank you very much.

xavier

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.