eclipse 如何清除 SpringSource Tool Suite 缓存?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10958877/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 18:19:54  来源:igfitidea点击:

How to clear the SpringSource Tool Suite cache?

javaeclipsecachingmavenproject

提问by user710818

I have installed SpringSource Tool Suite(STS) version 3. I created two Maven projects: a console application and a web Maven application. I tried to open Main.javain Eclipse, but without success. I tried to restart STS, but receive this error:

我已经安装了SpringSource Tool Suite(STS) 版本 3。我创建了两个 Maven 项目:一个控制台应用程序和一个 Web Maven 应用程序。我试图Main.java在 Eclipse 中打开,但没有成功。我尝试重新启动 STS,但收到此错误:

!SESSION 2012-06-09 09:13:29.626 -----------------------------------------------
eclipse.buildId=3.0.0.201205010613-M1-e42
java.version=1.7.0_04
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product com.springsource.sts.ide
Command-line arguments:  -os win32 -ws win32 -arch x86 -product com.springsource.sts.ide

!ENTRY org.eclipse.osgi 4 0 2012-06-09 09:13:30.552
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
    at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:225)
    at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:657)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:274)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    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:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
Caused by: java.lang.IllegalStateException: Expected to find an object at table index: 1008

I suppose that I need to clear some cache. Is that correct? Where is it?

我想我需要清除一些缓存。那是对的吗?它在哪里?

回答by AdrianRM

Perhaps you could solve it starting Eclipse with the -cleanoption

也许您可以使用-clean选项启动 Eclipse 来解决它

How to run eclipse in clean mode? and what happens if we do so?

如何在干净模式下运行 eclipse?如果我们这样做会发生什么?

回答by Anuj Patel

Edit file "ECLIPSE_HOME\configuration\config.ini" change

编辑文件“ECLIPSE_HOME\configuration\config.ini”更改

osgi.bundles=reference\:file\:org.eclipse.osgi_3.6.2.R36x_v20110210.jar@4,reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar@1\:start

To

osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar@1\:start

More details Can be found here..

更多细节可以在这里找到..