Design Java programmatically library. path
•
Java
I can set up Java programmatically from the Java code itself library. Path?
Not below
System.setProperty("java.library.path","/blah");
Solution
No, you can't This property is a read-only value You can change the JVM when it starts:
-Djava.library.path=your_path
If you want to load a library from a specific location, you can use system Load (library path) instead of the full path of the library
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码