编程语言
首页 > 编程语言> > java-启动时JProfiler UnsatisfiedLinkError

java-启动时JProfiler UnsatisfiedLinkError

作者:互联网

我刚刚从jprofiler_linux_7_0_1.sh下载并安装了试用版JProfiler.奇怪的事实是在安装过程中没有提示输入许可证信息的提示.但是一切似乎都很好,直到我尝试运行探查器为止:

# sh ./bin/jprofiler -c

(-c是要在控制台中运行jprofiler.我已经在Internet上的某个地方阅读过,但不确定是正确的.无论如何,结果仍然相同.)

这是我得到的结果:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/jdk1.6.0_26/jre/lib/amd64/xawt/libmawt.so: libXext.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:1807)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
        at java.lang.Runtime.load0(Runtime.java:770)
        at java.lang.System.load(System.java:1003)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1724)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1028)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
        at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
        at java.awt.Component.<clinit>(Component.java:566)
        at com.install4j.runtime.splashscreen.JavaSplashController.show(Unknown Source)
        at com.install4j.runtime.launcher.SplashEngine.showSplashScreen(Unknown Source)
        at com.install4j.runtime.launcher.Launcher.main(Unknown Source)

我来到/opt/jdk1.6.0_26/jre/lib/amd64/xawt;它确实具有libmawt.so,但没有libXext.so.6.我试图卸载jprofiler并再次安装,但是发生相同的错误.

有人知道这里发生了什么吗?

解决方法:

检查您的操作系统中是否有libxtst.要安装它,您可以执行以下操作:“ sudo apt-get install libxtst6:

PS:您也可以尝试将YourKit Java Profiler与评估许可证一起使用.

标签:jvm,profiling,jprofiler,linux,java
来源: https://codeday.me/bug/20191102/1987984.html