我刚刚在 Ubuntu Mate 上安装了 Eclipse IDE for Java Developers。控制台显示致命错误:
(WebKitWebProcess:19041): GLib-CRITICAL **: 17:07:33.039: g_variant_get_type: assertion 'value != NULL' failed
(WebKitWebProcess:19041): GLib-CRITICAL **: 17:07:33.039: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed
(WebKitWebProcess:19041): GLib-CRITICAL **: 17:07:33.039: g_variant_get_int32: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_INT32)' failed
**
ERROR:webkitgtk_extension.c:47:proxy_init: assertion failed: (parentUniqueId != 0)
(Eclipse:18968): Gtk-CRITICAL **: 17:08:34.496: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
有没有什么技巧可以让 Eclipse 在 Ubuntu-Mate 上运行?
Ubuntu-Mate 18.03.3 LTS (Bionic) 32 位
面向 Java 开发人员的 Eclipse IDE
版本:2018-09(4.9.0),内部版本号:20180917-1800
我刚刚从 Ubuntu 存储库安装了 Eclipse,因为我认为存储库软件将与发行版兼容。
sudo apt-get install eclipse
从控制台启动 eclipse 后,出现错误:
An error has occurred. See the log file
/home/ron/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1565714604868.log
该文件说明:
!SESSION Tue Aug 13 18:39:59 CEST 2019 -----------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2019-08-13 18:39:59.324
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:626)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
我的JDK设置:
echo $JAVA_HOME
/home/ron/jdk1.8.0_221
echo $PATH
/home/ron/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ron/jdk1.8.0_221/bin
echo $CLASSPATH
/home/ron/jdk1.8.0_221/lib
答案1
我认为有一个解决方法。我从 www.eclipse.org 安装了 Eclipse IDE for Java Developers,版本:Oxygen.3a Release (4.7.3a),版本号:20180405-1200。从控制台 eclispe 启动它时出现警告
(Eclipse:8036): Gtk-WARNING **: 21:10:39.771: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node trough, owner GtkProgressBar)
我也遇到了错误:
(Eclipse:8036): Gtk-CRITICAL **: 21:12:28.572: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
这是自 2018 年以来 eclipse 中已知的一个错误。
但除此之外,到目前为止一切似乎都顺利。