properties - How to programmingly set the loading path of dynamic libraries in java? -


 system.setproperty("java.library.path", "pathtolibs"); 

doesnt work because seems either "java.library.path" read or jvm ignores property.

i know can done setting path(in windows), ld_library_path(in posix) or use command java -djava.library.path=your_path.

but there programming way of doing this?

java.library.path evaluated when vm starts, changing later not have effect on loading native libraries. can use system.load(string filename); specify complete path native library want load, perhaps system.maplibraryname(string) add platform specific file ending (e.g. .dll or .so).


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -