users@glassfish.java.net

Re: How do you properly set java.library.path for a native DLL?

From: victorng <victor.ng_at_cibc.com>
Date: Wed, 15 Jul 2009 11:56:27 -0700 (PDT)

I'm not sure if it's a bug in the logger or a limitation in Windows, but my
java.library.path looked like it was truncated when I was looking in
jvm.log. It looked like it was truncated ~2000 characters (not 2048 - I
think it was 2022).

vic


glassfish-2 wrote:
>
> (1)
> The JVM on Windows automatically sets the System Property,
> java.library.path, to the contents of your Windows environmental variable,
> "Path".
>
> All you need to do is make sure the dll is in your OS Path!
>
> --------------------
> (2)
> You can set the java.library.path yourself via a jvm-option but I don't
> recommend it. You lose the JVM help as in (1)
>
> -------------
> (3)
> On UNIX you have to do the work partially. I.e. you have to set the
> LD_LIBRARY_PATH
> environmental variable. The JVM will then set java.library.path to that
> variable's contents by default.
> [Message sent by forum member 'bnevins' (bnevins)]
>
> http://forums.java.net/jive/thread.jspa?messageID=355828
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>

-- 
View this message in context: http://www.nabble.com/How-do-you-properly-set-java.library.path-for-a-native-DLL--tp24497680p24503827.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.