Eclipse JEE ,2018-09 版本在 Ubuntu Bionic beaver 上不起作用。市场 GUI 未呈现。退出时崩溃。JRE 是 Oracle jre 8。请帮忙。提前致谢。
日志显示这些错误:Eclipse:3817): IBUS-WARNING **: 23:57:55.555: /home/gangs/.config/ibus/bus 的所有者不是 root! java.lang.NoSuchMethodError: gObjectClass_finalize 在 org.eclipse.swt.internal.gtk.GTK._gtk_widget_destroy(Native Method) 在 org.eclipse.swt.internal.gtk.GTK.gtk_widget_destroy(GTK.java:8625) 在 org.eclipse.swt.widgets.Widget.destroyWidget(Widget.java:467) 在 org.eclipse.swt.widgets.Widget.release(Widget.java:1197) 在 org.eclipse.swt.widgets.Control.release(Control.java:4358) 在 org.eclipse.swt.widgets.Widget.dispose(Widget.java:502) 在org.eclipse.swt.widgets.Shell.dispose(Shell.java:2836) at org.eclipse.jface.window.Window.close(Window.java:333) at org.eclipse.jface.dialogs.Dialog.close(Dialog.java:993) at org.eclipse.jface.dialogs.Dialog.okPressed(Dialog.java:953) at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.workspaceSelected(ChooseWorkspaceDialog.java:246) at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.okPressed(ChooseWorkspaceDialog.java:236) at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:469) at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:622) at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5797) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1374) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5051) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4583) at org.eclipse.jface.window.Window.runEventLoop(Window.java:821) at org.eclipse.jface.window.Window.open(Window.java:797) at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.prompt(ChooseWorkspaceDialog.java:117) at org.eclipse.ui.internal.ide.application.IDEApplication.promptForWorkspace(IDEApplication.java:370) at org.eclipse.ui.internal.ide.application.IDEApplication.checkInstanceLocation(IDEApplication.java:282) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:145) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:199) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:391) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:246) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在 java.lang.reflect.Method。在 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659) 处在 org.eclipse.equinox.launcher.Main.basicRun(Main.java:595) 处在 org.eclipse.equinox.launcher.Main.run(Main.java:1501) 处调用 (Method.java:498) org.eclipse.m2e.logback.configuration: Logback 配置文件:/root/eclipse-workspace/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.9.1.20180912-1601.xml SLF4J:类路径包含多个 SLF4J 绑定。 SLF4J:在 [bundleresource://979.fwk4894200:1/org/slf4j/impl/StaticLoggerBinder.class] 中发现绑定 SLF4J:在 [bundleresource://979.fwk4894200:2/org/slf4j/impl/StaticLoggerBinder.class] 中发现绑定 SLF4J:参见http://www.slf4j.org/codes.html#multiple_bindings了解解释。SLF4J:实际绑定的类型为 [ch.qos.logback.classic.util.ContextSelectorStaticBinder] org.eclipse.m2e.logback.configuration:初始化 logback
(WebKitWebProcess:3869):GLib-CRITICAL **:23:58:19.287:g_variant_get_type:断言“value!= NULL”失败
(WebKitWebProcess:3869):GLib-CRITICAL **:23:58:19.312:g_variant_type_is_subtype_of:断言‘g_variant_type_check(类型)’失败
(WebKitWebProcess:3869):GLib-CRITICAL **:23:58:19.312:g_variant_get_int32:断言“g_variant_is_of_type(value,G_VARIANT_TYPE_INT32)”失败**错误:webkitgtk_extension.c:47:proxy_init:断言失败:(parentUniqueId!= 0)
(WebKitWebProcess:3915):GLib-CRITICAL **:23:58:44.512:g_variant_get_type:断言“value!= NULL”失败
(WebKitWebProcess:3915):GLib-CRITICAL **:23:58:44.513:g_variant_type_is_subtype_of:断言‘g_variant_type_check(类型)’失败
(WebKitWebProcess:3915):GLib-CRITICAL **:23:58:44.513:g_variant_get_int32:断言“g_variant_is_of_type(value,G_VARIANT_TYPE_INT32)”失败**错误:webkitgtk_extension.c:47:proxy_init:断言失败:(parentUniqueId!= 0)
(WebKitWebProcess:3930):GLib-CRITICAL **:23:58:49.562:g_variant_get_type:断言“value!= NULL”失败
(WebKitWebProcess:3930):GLib-CRITICAL **:23:58:49.563:g_variant_type_is_subtype_of:断言‘g_variant_type_check(类型)’失败
(WebKitWebProcess:3930):GLib-CRITICAL **:23:58:49.563:g_variant_get_int32:断言“g_variant_is_of_type(value,G_VARIANT_TYPE_INT32)”失败**错误:webkitgtk_extension.c:47:proxy_init:断言失败:(parentUniqueId!= 0)
(WebKitWebProcess:3945):GLib-CRITICAL **:23:58:53.056:g_variant_get_type:断言“value!= NULL”失败
(WebKitWebProcess:3945):GLib-CRITICAL **:23:58:53.057:g_variant_type_is_subtype_of:断言‘g_variant_type_check(类型)’失败
(WebKitWebProcess:3945): GLib-CRITICAL **: 23:58:53.057: g_variant_get_int32: 断言‘g_variant_is_of_type (value, G_VARIANT_TYPE_INT32)’失败** 错误:webkitgtk_extension.c:47:proxy_init: 断言失败: (parentUniqueId != 0)
答案1
不幸的是,gObjectClass_finalize 是一个已知的错误,目前还没有修复,而且修复的可能性很小。我猜你在这里运行的是 32 位 Linux。你可以跟踪这个错误的历史记录:https://bugs.eclipse.org/bugs/show_bug.cgi?id=527536
解决方案可以是切换到 64 位版本的 Linux。