VisualVM does not start after installing it with sudo apt install visualvm
on Ubuntu 18.04. It simply does nothing.
Starting it with visualvm -J-Djava.util.logging.config.file=logging-jconsole.properties
yields the following error message:
java.lang.UnsatisfiedLinkError: no splashscreen in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at java.awt.SplashScreen$1.run(SplashScreen.java:124)
at java.awt.SplashScreen$1.run(SplashScreen.java:122)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.SplashScreen.getSplashScreen(SplashScreen.java:121)
at org.netbeans.core.startup.Splash.<init>(Unknown Source)
at org.netbeans.core.startup.Splash.getInstance(Unknown Source)
at org.netbeans.core.startup.Main.start(Unknown Source)
at org.netbeans.core.startup.TopThreadGroup.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
The problem persists after installing the JDK with sudo apt install default-jdk
.