Linux上执行jconsole提示少libXtst.so.6文件

阅读更多
jconsole
Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/jdk/jre/lib/amd64/libawt_xawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
        at java.lang.Runtime.load0(Runtime.java:809)
        at java.lang.System.load(System.java:1086)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1845)
        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
        at java.lang.System.loadLibrary(System.java:1122)
        at java.awt.Toolkit$3.run(Toolkit.java:1636)
        at java.awt.Toolkit$3.run(Toolkit.java:1634)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
        at java.awt.Toolkit.(Toolkit.java:1668)
        at java.awt.Component.(Component.java:593)
********************************************************
【分析】
缺少以下.so文件,如下:
/usr/lib64/libXtst.so.6
/usr/lib64/libX11.so.6
/usr/lib64/libXrender.so
/usr/lib64/libXrender.so.1
/usr/lib64/libXtst.so.6
/usr/lib64/libXi.so.6
/usr/lib64/libxcb.so.1
/usr/lib64/libXau.so.6
【解决】
从可用的主机上copy此8个文件即可

你可能感兴趣的:(jconsole,.so,jdk,linux)