users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Wed, 15 Jul 2009 10:32:13 PDT

(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