System.mapLibraryName("XXX")
在windows環境下如果加載libtest.dll則需要將文件名寫完整System.loadLibrary("libtest")
在linux環境下則可以 只寫test 加載libtest.so System.loadLibrary("test")
在solaris中需要將LD_LIBRARY_PATH配置到so及jar的所在目錄
System.mapLibraryName("XXX")
在windows環境下如果加載libtest.dll則需要將文件名寫完整System.loadLibrary("libtest")
在linux環境下則可以 只寫test 加載libtest.so System.loadLibrary("test")
在solaris中需要將LD_LIBRARY_PATH配置到so及jar的所在目錄