This is on a headless machine, over SSH (ssh -Y): ~ $ jconsole Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/oracle-jdk-bin-1.8.0.66/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:1938) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821) 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:1938) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1842) 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.<clinit>(Toolkit.java:1668) at java.awt.Component.<clinit>(Component.java:593) $ equery u oracle-jdk-bin [ Legend : U - final flag setting for installation] [ : I - package is installed with flag ] [ Colors : set, unset ] * Found these USE flags for dev-java/oracle-jdk-bin-1.8.0.72: U I - - alsa : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture) - - cups : Add support for CUPS (Common Unix Printing System) - - derby : Install bundled Derby (Java database) - - doc : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally - - examples : Install examples, usually source code + - fontconfig : Support for configuring and customizing font access via media-libs/fontconfig - - headless-awt : Don't install the X backend for AWT, needed by some GUIs (used to be X flag) - - javafx : Install JavaFX libraries + + jce : Install Java Cryptographic Extension Unlimited Strength Jurisdiction Policy Files - - nsplugin : Build plugin for browsers supporting the Netscape plugin architecture (that is almost any modern browser) - - pax_kernel : Use paxctl to mark the JVM binaries - - source : Install JVM (and optionally JavaFX) sources After manually emerging libXtst it works fine. I think the RDEPEND is incomplete: RDEPEND="!x64-macos? ( !headless-awt? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXi x11-libs/libXrender ) Reproducible: Always
Fixed, thanks! I did check the library dependencies very carefully a while ago but maybe they added this one since or I just missed it.