Hoàng Long
Hoàng Long

Reputation: 10848

JProfiler UnsatisfiedLinkError when starting

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?

Upvotes: 3

Views: 2524

Answers (2)

Vladislav Bauer
Vladislav Bauer

Reputation: 962

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.

Upvotes: 1

Ingo Kegel
Ingo Kegel

Reputation: 47965

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

Upvotes: 3

Related Questions