eclipse.buildId = 4.5.1.M20150904-0015 java.version = 1.8.0_74 java.vendor = Oracle Corporation BootLoader常量:OS = linux, ARCH = x86_64,WS = gtk,NL = en_US框架参数:-product org.eclipse.epp.package.java.product命令行参数:-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
答案 0 :(得分:1)
我现在不再有错误了。我做了很多事情,并不确定是否需要所有这些东西
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 javac
9)导出JAVA_HOME = / opt / java / jdk1.8.0_74
单独前面的步骤并未删除所有错误。我的最后一步是降级到Spring Tool Suite的早期版本并创建一个新的工作区,然后重新添加我的所有项目。我注意到旧工作区保留了很多我认为已删除的设置。总而言之,我不认为Eclipse或Spring Tool Suite能够让您知道缺少的依赖项,并且即使您删除它们,它们似乎也会保留以前插件的残留。