On Thu, May 24, 2012 at 4:30 AM, Alan Ruttenberg alanruttenberg@gmail.com wrote:
I have had trouble if there is an associated native library that needs to be loaded - in that case the java initializer will expect to be able to load the native library, but I don't know any way to dynamically extend the native library path. That may not be happening in your case, but I figured I'd add this factoid to the thread for later searching. If anyone knows how to actually change java.library.path at run time (and have the change matter), do let me know.
The only way I know is mucking with ClassLoader via reflection. Not pretty and not portable, since the accessed fields are private.
Alessio