How do I configure the Java run time library path (java.library.path) in MATLAB with and without admin privileges?
Show older comments
I need to have the MATLAB JVM load a native library (.dll file on Windows, .so file on Unix, and .dylib file on Mac).
How can I set the Java run time library path (java.library.path) in MATLAB so that the MATLAB JVM can pick up the custom library? I would like to be able to set it regardless of access to admin privileges.
If I use the Java setProperty method in MATLAB:
java.lang.System.setProperty('java.library.path', 'C:\TEMP')
java.lang.System.getProperty('java.library.path')
The above code does not change the libraries being used, although the property has changed:
ans =
C:\TEMP
Accepted Answer
More Answers (0)
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!