How do I configure the Java run time library path (java.library.path) in MATLAB with and without admin privileges?
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!