Design Java programmatically library. path

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
分享
二维码
< <上一篇
下一篇>>