users@glassfish.java.net

Re: glassfish directory? for user-libraries (.dll or .so)

From: Sahoo <Sahoo_at_Sun.COM>
Date: Sat, 04 Apr 2009 12:17:55 +0530

A java program looks for shared libraries in directories specified via
java.library.path system property. In server.log if you look at the
command line used to launch appserver, you shall notice it is set to
<glassfish-home>/lib dir. So, place your .so or .dll files in
<glassfish-home>/lib dir.

Thanks,
Sahoo

Martin, Ray wrote:
> Where does one put shared libraries from third parties when deploying
> an app to glassfish?
>
> i deploy my java code, which calls the third party java code which in
> turn wants to call a .so (Linux) or .dll(Windows)
> i placed the third party jar file into <glassfish-home>/lib/endorsed
> and <glassfish-home/domains/domain1/lib/ext because i did not know
> which was correct. now i just need to get the shared library placed
> into the correct place.
>
> thanx.