users@glassfish.java.net

Re: Using a native dll with glassfish

From: Sahoo <Sahoo_at_Sun.COM>
Date: Fri, 12 Dec 2008 08:21:48 +0530

What API is used to load the dll? Is it System.loadLibrary or
System.load? The latter one takes a full path to the library file where
as the former one takes a library name and the underlying system appends
a proper extension (like .dll) and a prefix (like lib on Unix systems)
to come up with a file name and then searches for that file in path
specified by java.library.path system variable. Look at glassfish
server.log, you shall see the value of java.library.path printed there.
You can then put your library in one of those directories. If someone
knows a more appropriate place to keep application specific library,
then I would be glad to know it.

HTH...

Sahoo

glassfish_at_javadesktop.org wrote:
> Hi,
>
> Been trying to get this to work for a bit now. I am new to EE development in general, so I think a big part of my problem is simply not knowing where to put what. I am using netbeans with glassfish, and am trying to create a Java EE enterprise application. I have a dll that I am accessing via standard java nio, which the client doesn't need access to. However, when I try to deploy the application it fails. So, where do I put this dll? And more generally, where should I put auxiliary files that I need in my project, like a custom property file or other resource file?
>
> Any help would be greatly appreciated,
> Thanks.
>
> Casey
> [Message sent by forum member 'caseyd' (caseyd)]
>
> http://forums.java.net/jive/thread.jspa?messageID=321304
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>