JProfiler启动时出现UnsatisfiedLinkError

发布于 2024-12-16 11:16:16 字数 1892 浏览 2 评论 0原文

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

# sh ./bin/jprofiler -c

-c 是在控制台中运行 jprofiler。我在互联网上读过某处,但不确定这是真的。无论如何,结果仍然是一样的。)

这是我得到的结果:

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并重新安装,但出现同样的错误。

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

I just downloaded and installed a trial JProfiler version from jprofiler_linux_7_0_1.sh. The strange fact is that there's no prompt for inputting license information in the installing process. But everything seems to be fine, until I try to run the profiler:

# sh ./bin/jprofiler -c

(The -c is to run jprofiler in console. I have read somewhere on Internet, but not sure that's true. Anyway, the result is still the same.)

Here's the results I get:

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)

I have come to /opt/jdk1.6.0_26/jre/lib/amd64/xawt; it does have libmawt.so, but no libXext.so.6. I tried to uninstall jprofiler and install it again, but the same error occurs.

Does anyone have a clue what's happening here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

寻梦旅人 2024-12-23 11:16:16

您无法在控制台模式下运行 JProfiler GUI。参数 -c 仅用于在控制台模式下运行安装程序。

要在无头计算机上设置分析,请运行

bin/jpintegrate

要控制未附加 JProfiler GUI 的分析进程(“离线分析”),请运行

bin/jpcontroller

You cannot run the JProfiler GUI in console mode. The argument -c is only for running the installer in console mode.

To set up profiling on a headless machine, run

bin/jpintegrate

To control a profiled process that does not have a JProfiler GUI attached ("offline profiling") run

bin/jpcontroller
雪若未夕 2024-12-23 11:16:16

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

PS:您也可以尝试使用 YourKit具有评估许可证的 Java Profiler

Check that you have got libxtst in your operation system. To install it, you can do something like this: "sudo apt-get install libxtst6:

PS: You could also try to use YourKit Java Profiler with evaluation license.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文