gpt4 book ai didi

java - org.osgi.service.event.Event ERROR(s) 在 org.eclipse.swt.widgets.** 调用的全新 Eclipse Mars 安装

转载 作者:行者123 更新时间:2023-12-04 05:59:02 25 4
gpt4 key购买 nike

我刚刚下载了一个全新的 Eclipse Mars 版本 4.5.1

eclipse.buildId=4.5.1.M20150904-0015 java.version=1.8.0_74 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US Framework arguments: -product org.eclipse.epp.package.java.product Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product


为什么我在空工作区时已经出现 4 个错误?有什么方法可以消除错误,还是我应该忽略它们,这是正常的?似乎是 SWT 问题,我不知道如何解决。任何帮助表示赞赏。

其中一条消息的副本:

Exception while dispatching event org.osgi.service.event.Event [topic=org/eclipse/e4/ui/model/ui/UIElement/toBeRendered/SET] {ChangedElement=org.eclipse.e4.ui.model.application.ui.basic.impl.TrimBarImpl@608fe01f (elementId: org.eclipse.ui.main.toolbar, tags: [], contributorURI: null) (widget: Composite {}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.TrimBarRenderer@75f4d8a8, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (side: Top), Widget=null, AttName=toBeRendered, NewValue=true, EventType=SET, OldValue=false} to handler org.eclipse.e4.core.di.internal.extensions.EventObjectSupplier$DIEventHandler@5abbb273

-----------------
java.lang.StackOverflowError
at org.eclipse.swt.internal.gtk.OS.gtk_toolbar_set_show_arrow(OS.java:12672)
at org.eclipse.swt.widgets.ToolBar.setBounds(ToolBar.java:593)
at org.eclipse.swt.widgets.Control.setLocation(Control.java:1123)
at org.eclipse.e4.ui.widgets.ImageBasedFrame.setFramedControlLocation(ImageBasedFrame.java:119)
at org.eclipse.e4.ui.widgets.ImageBasedFrame.access$0(ImageBasedFrame.java:115)
at org.eclipse.e4.ui.widgets.ImageBasedFrame$4.controlMoved(ImageBasedFrame.java:104)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:224)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1334)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1049)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1443)
at org.eclipse.swt.widgets.ToolBar.setBounds(ToolBar.java:594)
at org.eclipse.swt.widgets.Control.setLocation(Control.java:1123)
at org.eclipse.e4.ui.widgets.ImageBasedFrame.setFramedControlLocation(ImageBasedFrame.java:119)
at org.eclipse.e4.ui.widgets.ImageBasedFrame.access$0(ImageBasedFrame.java:115)
at org.eclipse.e4.ui.widgets.ImageBasedFrame$4.controlMoved(ImageBasedFrame.java:104)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:224)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1334)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1049)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1443)
at org.eclipse.swt.widgets.ToolBar.setBounds(ToolBar.java:594)
at org.eclipse.swt.widgets.Control.setLocation(Control.java:1123)
at org.eclipse.e4.ui.widgets.ImageBasedFrame.setFramedControlLocation(ImageBasedFrame.java:119)
at org.eclipse.e4.ui.widgets.ImageBasedFrame.access$0(ImageBasedFrame.java:115)
at org.eclipse.e4.ui.widgets.ImageBasedFrame$4.controlMoved(ImageBasedFrame.java:104)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:224)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1334)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1049)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1443)
at org.eclipse.swt.widgets.ToolBar.setBounds(ToolBar.java:594)
at org.eclipse.swt.widgets.Control.setLocation(Control.java:1123)
at org.eclipse.e4.ui.widgets.ImageBasedFrame.setFramedControlLocation(ImageBasedFrame.java:119)
at org.eclipse.e4.ui.widgets.ImageBasedFrame.access$0(ImageBasedFrame.java:115)
at org.eclipse.e4.ui.widgets.ImageBasedFrame$4.controlMoved(ImageBasedFrame.java:104)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:224)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1334)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1049)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1443)
at org.eclipse.swt.widgets.ToolBar.setBounds(ToolBar.java:594)
at org.eclipse.swt.widgets.Control.setLocation(Control.java:1123)
at org.eclipse.e4.ui.widgets.ImageBasedFrame.setFramedControlLocation(ImageBasedFrame.java:119)
at org.eclipse.e4.ui.widgets.ImageBasedFrame.access$0(ImageBasedFrame.java:115)
at org.eclipse.e4.ui.widgets.ImageBasedFrame$4.controlMoved(ImageBasedFrame.java:104)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:224)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1334)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1049)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1443)
at org.eclipse.swt.widgets.ToolBar.setBounds(ToolBar.java:594)
at org.eclipse.swt.widgets.Control.setLocation(Control.java:1123)
at org.eclipse.e4.ui.widgets.ImageBasedFrame.setFramedControlLocation(ImageBasedFrame.java:119)
at org.eclipse.e4.ui.widgets.ImageBasedFrame.access$0(ImageBasedFrame.java:115)
at org.eclipse.e4.ui.widgets.ImageBasedFrame$4.controlMoved(ImageBasedFrame.java:104)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:224)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1334)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1049)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1443)
at org.eclipse.swt.widgets.ToolBar.setBounds(ToolBar.java:594)
at org.eclipse.swt.widgets.Control.setLocation(Control.java:1123)
at org.eclipse.e4.ui.widgets.ImageBasedFrame.setFramedControlLocation(ImageBasedFrame.java:119)
at org.eclipse.e4.ui.widgets.ImageBasedFrame.access$0(ImageBasedFrame.java:115)
at org.eclipse.e4.ui.widgets.ImageBasedFrame$4.controlMoved(ImageBasedFrame.java:104)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:224)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1334)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:1049)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1443)
at org.eclipse.swt.widgets.ToolBar.setBounds(ToolBar.java:594)
at org.eclipse.swt.widgets.Control.setLocation(Control.java:1123)
at .... // truncated because of message size limitations

最佳答案

我现在不再有错误了。我做了很多事情,但不确定是否需要所有这些。
1) Java升级到8.
2) 安装 libswt-gtk-3-java 和 libswt-gtk-3-jni
3) sudo update-alternatives --config java 并选择 Java 8
4) mkdir -p ~/.swt/lib/linux/x86_64/
5) sudo cp/usr/lib/jni/libswt-*3836.so ~/.swt/lib/linux
6) sudo apt-get autoremove openjdk-7-jre
7) sudo update-alternatives --install "/usr/bin/javac""javac""/opt/java/jdk1.8.0_74/bin/javac"1
8) sudo update-alternatives --config javac9) export JAVA_HOME=/opt/java/jdk1.8.0_74

仅靠前面的步骤并没有消除所有错误。我的最后一步是降级到早期版本的 Spring Tool Suite 并创建一个新的工作区,然后重新添加我的所有项目。我注意到旧工作区保留了许多我认为已删除的设置。总之,我认为 Eclipse 或 Spring Tool Suite 并不能很好地让您了解缺少的依赖项,并且即使您删除了它们,它们似乎仍然保留着以前插件的残留物。

关于java - org.osgi.service.event.Event ERROR(s) 在 org.eclipse.swt.widgets.** 调用的全新 Eclipse Mars 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35385017/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com