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 12:02:43 -0700 (PDT)

Hmm.. my java.library.path line in jvm.log is truncated at exactly 2000
characters.

Well - it's len("java.library.path=") + 2000 characters.

Is that just a bug/limitation in the logger ?

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--tp24497680p24503856.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.