Spring Tool Suite(Eclipse)启动失败:java.lang.NoSuchFieldError:url

Spring Tool Suite(Eclipse)启动失败:java.lang.NoSuchFieldError:url

昨天 STS 运行正常。今天当我尝试打开 STS 时,它失败并显示以下消息:发生了错误。查看日志文件...

当我打开日志文件时,我看到以下内容:

!SESSION 2019-06-14 12:39:17.390 -----------------------------------------------
eclipse.buildId=3.9.0.201707061903-RELEASE-e46
java.version=1.8.0_201
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.springsource.sts.ide
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.springsource.sts.ide

!ENTRY org.eclipse.osgi 4 0 2019-06-14 12:39:22.351
!MESSAGE Application error
!STACK 1
java.lang.NoSuchFieldError: url
    at org.eclipse.jface.resource.URLImageDescriptor.createImage(URLImageDescriptor.java:258)
    at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:224)
    at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:202)
    at org.eclipse.ui.internal.Workbench.initializeImages(Workbench.java:1898)
    at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:806)
    at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:160)
    at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:168)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:111)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1519)

以前有其他人遇到过这个错误吗?

答案1

首先,我们很抱歉您遇到了这个相当严重的问题 - 这个问题影响了安装了 DevStyle Icon Designer 的 Eclipse Neon 用户。

我知道您通过删除所有主题插件解决了该问题,但仅删除插件com.genuitec.eclipse.theming.icon.designer_1.11.0.201906121516就足以解决此问题并保留您的自定义主题。

请参见这个帖子了解详细信息和简单的解决方法。再次对由此造成的不便表示歉意。

答案2

我必须从插件目录中删除以下.jar 文件:

com.genuitec.eclipse.core.common.platform_13.0.2.201906121516.jar
com.genuitec.eclipse.inlinesearch_1.11.0.201906121516.jar
com.genuitec.eclipse.meexplorer.jdt_1.11.0.201906121516.jar
com.genuitec.eclipse.meexplorer_13.0.0.201906121516.jar
com.genuitec.eclipse.monitor_13.0.0.201906121516.jar
com.genuitec.eclipse.news_1.11.0.201906121516.jar
com.genuitec.eclipse.patches_1.11.0.201906121516.jar
com.genuitec.eclipse.startup.workspace_1.11.0.201906121516.jar
com.genuitec.eclipse.startup_1.11.0.201906121516.jar
com.genuitec.eclipse.theming.base.win_1.11.0.201906121516.jar
com.genuitec.eclipse.theming.base_1.11.0.201906121516.jar
com.genuitec.eclipse.theming.core_1.11.0.201906121516.jar
com.genuitec.eclipse.theming.css_1.11.0.201906121516.jar
com.genuitec.eclipse.theming.epl_1.11.0.201906121516.jar
com.genuitec.eclipse.theming.icon.designer_1.11.0.201906121516.jar
com.genuitec.eclipse.theming.scrollbar.win_1.11.0.201906121516.jar
com.genuitec.eclipse.theming.scrollbar_1.11.0.201906121516.jar
com.genuitec.eclipse.theming.ui_1.11.0.201906121516.jar
com.genuitec.eclipse.ui.common.platform_13.0.0.201906121516.jar
com.genuitec.eclipse.webclipse.evergreen_1.11.0.201906121516.jar
com.genuitec.eclipse.webicons_1.11.0.201906121516.jar
com.genuitec.eclipsecolortheme.api_1.11.0.201906121516.jar

我相信这些 .jar 文件与我之前为 Eclipse 下载的市场配色方案有关。

相关内容