The difference is there in the API documentation.
system.loadLibrary(String libname) lets you load from the default path -- The Java library path.
system.load(String filename) lets you load it from an absolute path, which you must specify as your file name.
If you don't want to mess with your java.library.path environment variable, you should use system.load().

本文详细解释了Java中system.load和system.loadLibrary方法的区别,包括它们如何加载库,以及何时使用system.load更为合适。

被折叠的 条评论
为什么被折叠?



