System.mapLibraryName("XXX")

在windows环境下如果加载libtest.dll则需要将文件名写完整System.loadLibrary("libtest")

在linux环境下则可以 只写test 加载libtest.so System.loadLibrary("test")


在solaris中需要将LD_LIBRARY_PATH配置到so及jar的所在目录