绝对值得一看的错误AIX64位 webpshere 6.1 UnsatisfiedLinkError错
System.loadLibrary(libname);应用中报的错
为了验证是哪出了问题写了个只有System.loadLibrary(libname);的类在main方法里调用
/usr/lib 目录下有要使用的.so文件,错误如下:
Exception in thread "main" java.lang.UnsatisfiedLinkError: libname(A file or directory in the path name does not exist.)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:953)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:922)
at java.lang.System.loadLibrary(System.java:451)
at GetPath.main(GetPath.java:13)
# java GetPath
/usr/lib 目录下有将.so文件改名,错误如下:
Exception in thread "main" java.lang.UnsatisfiedLinkError: libname(Not found in java.library.path)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:953)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:922)
at java.lang.System.loadLibrary(System.java:451)
at GetPath.main(GetPath.java:13)
错误都一样,只是提示不同,
系统从32位升级到64位了的,是不是so文件在新版本下不能使用?