[英]VisualVM does not Start on Ubuntu 18.04
VisualVM does not start after installing it with sudo apt install visualvm
on Ubuntu 18.04. 在Ubuntu 18.04上使用
sudo apt install visualvm
安装后,VisualVM无法启动。 It simply does nothing. 它什么都不做。
Starting it with visualvm -J-Djava.util.logging.config.file=logging-jconsole.properties
yields the following error message: 使用
visualvm -J-Djava.util.logging.config.file=logging-jconsole.properties
启动它会产生以下错误消息:
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
. 使用
sudo apt install default-jdk
安装JDK后问题仍然存在。
I figured it out myself. 我自己想通了。 It had the wrong version of OpenJDK installed.
它安装了错误版本的OpenJDK。 The "default-jdk" package on Ubuntu seems to be the "headless" version (openjdk-8-jdk-headless).
Ubuntu上的“default-jdk”软件包似乎是“无头”版本(openjdk-8-jdk-headless)。 In order to get VisualVM to work I uninstalled the headless version of the OpenJDK and installed OpenJDK minus headless.
为了让VisualVM工作,我卸载了OpenJDK的无头版本并安装了OpenJDK减去无头。
sudo apt remove openjdk-8-jdk-headless
sudo apt install openjdk-8-jdk
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.