The difference is there in the API documentation. System.loadLibrary(String libname)
lets you load from the default path -- The Java library path.
The other System.load(String filename)
lets you load it from an absolute path, which you must specify as your filename.
If you don't want to mess with you java.library.path
environment variable, you should use System.load()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…