Eu também tive a seguinte exceção ao executar jprofiler
:
java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
Usando /usr/lib/jvm/java-6-openjdk
no Ubuntu 12.04 32-bit.
Eu instalei o VisualVM a partir do "Ubuntu Software Update", que instalou uma série de dependências.
Um deles resolveu o problema.
Dependências instaladas:
bamfdaemon 0.2.118-0ubuntu0.2
desktop-file-utils 0.20-0ubuntu3
gnome-menus 3.4.0-0ubuntu1
hicolor-icon-theme 0.12-1ubuntu2
man-db 2.6.1-2
fontconfig 2.8.0-3ubuntu9
libhamcrest-java 1.1-8
junit4 4.8.2-2
libequinox-osgi-java 3.7.2-1
libfelix-framework-java 4.0.1-1
libfelix-main-java 4.0.1-2
xorg-sgml-doctools 1:1.10-1
x11proto-core-dev 7.0.22-1
libice-dev 2:1.0.7-2build1
libjna-java 3.2.7-4
libswing-layout-java 1.0.4-2
libpthread-stubs0 0.3-3
libpthread-stubs0-dev 0.3-3
libservlet2.5-java 6.0.35-1ubuntu3
libsm-dev 2:1.2.0-2build1
libxau-dev 1:1.0.6-4
libxdmcp-dev 1:1.1.0-4
x11proto-input-dev 2.1.99.6-1
x11proto-kb-dev 1.0.5-2
xtrans-dev 1.2.6-2
libxcb1-dev 1.8.1-1
libx11-dev 2:1.4.99.1-0ubuntu2
libx11-doc 2:1.4.99.1-0ubuntu2
libxt-dev 1:1.1.1-2build1
ttf-dejavu-extra 2.33-2ubuntu1
icedtea-netx-common 1.2-2ubuntu1
openjdk-6-jre 6b24-1.11.3-1ubuntu0.12.04.1
libatk-wrapper-java 0.30.4-0ubuntu2
javahelp2 2.0.05.ds1-6
libnb-platform12-java 6.9-0ubuntu2
icedtea-netx 1.2-2ubuntu1
openjdk-6-jdk 6b24-1.11.3-1ubuntu0.12.04.1
visualvm 1.3.2-0ubuntu2.1
libatk-wrapper-java-jni 0.30.4-0ubuntu2