I would like to know what is the standard way to clear the cache of Eclipse Indigo?
-
4What exactly do you mean by 'cache'? – home Feb 12 '12 at 16:06
-
10@home "The little bits of information that Eclipse randomly stores and corrupts." (You know, why "clean" and "delete project/workspace" solutions are so popular .. it's because they sometimes actually restore broken "cache" information. I miss Visual Studio.) – Jan 12 '13 at 08:49
8 Answers
you can use -clean parameter while starting eclipse like
C:\eclipse\eclipse.exe -vm "C:\Program Files\Java\jdk1.6.0_24\bin" -clean

- 1,889
- 5
- 26
- 32
If you are asking about cache where eclipse stores your project and workspace information right click on your project(s) and choose refresh. Then go to project in the menu on top of the window and click "clean".
This typically does what you need.
If it does not try to remove project from the workspace (just press "delete" on the project and then say that you DO NOT want to remove the sources). Then open project again.
If this does not work too, do the same with the workspace. If this still does not work, perform fresh checkout of your project from source control and create new workspace.
Well, this should work.

- 114,158
- 16
- 130
- 208
-
+1 for checkout and create new workspace. That finally worked after hours of being unable to start tomcat from eclipse. – Lars Bohl Apr 26 '16 at 12:29
Instructions
- Open Eclipse and navigate to the
Window
>Preferences
. - Scroll down the left-hand panel in the Preferences window and click
the
Remote Systems
drop-down root menu. SelectFile Cache
. - Click the
Clear Cached Files
button in the File Cache window. Note that this will automatically close any open remote files on your computer. - Press
Apply
andOK
to save your changes and exit out of the Preferences window.

- 5,783
- 15
- 70
- 117

- 420
- 5
- 11
-
10Would down-vote if I could, very specific to the version of Eclipse and misleading for others. – Xogle Jun 18 '15 at 17:48
-
works for most of the versions,also we expect people not to use 100 years old eclipse.. :) which version did you try? – bondkn Jun 25 '15 at 16:55
-
MyEclipse Enterprise Workbench Version: 2014 Build id: 12.0.0-20131202 No option "Remote Systems" – Xogle Jun 29 '15 at 14:29
-
3@Xogle: please check the question again, the user asks for a specified version(Eclipse Indigio). Please check once before defaming an answer...! (though i will find a solution for urs as well) – bondkn Jul 01 '15 at 05:51
-
3@Xogle you could use the search from Preferences for "File cache" and stop complaining about not seeing the exact steps to get there! – bogdan.rusu Mar 07 '16 at 15:52
You can always create a new Eclipse workspace. The Eclipse.exe -clean
option is not sufficient in some cases, for example, if the local history becomes a problem.
Edit:
Eclipse is mostly a collection of third party plugins. And each of those plugins can add some extra useful, useless or problematic information to the central Eclipse workspace meta-data folder.
The problem is that not every plugin participates during the user-issued cleanup routine. Therefore, I'd say that it is a problem in the system design of Eclipse, that it allows plugins to misbehave like this.
And therefore, I'd recommend to make yourself comfortable with the idea of using multiple workspaces and linking-in external project entities into each workspace. Because, this is the only workaround for the given system design, to handle faulty plugins that spam your workspace.

- 3,885
- 26
- 36

- 395
- 3
- 7
Clear improperly cached compile errors.
All Projects Locations in Eclipse
workspace\.metadata\.plugins\org.eclipse.core.resources\.projects\<project>\

- 3,535
- 1
- 21
- 25
-
1What did you mean by "Clear improperly cached compile errors." ? I removed everything in `workspace\.metadata\.plugins\org.eclipse.core.resources\.projects\
\` and now, I get an error (backup the data before doing it). I was forced to delete the project and import it again. – Jona Jan 17 '19 at 15:07
I think you can find the answer you want in these two posts. They are mentioning Flash Builder, but essentially, the talk is about its Eclipse base.
Clear improperly cached compile errors in FlexBuilder: http://blog.aherrman.com/2010/05/clear-improperly-cached-compile-errors.html
How to fix Flash Builder broken workspace: http://va.lent.in/how-to-fix-flash-builder-broken-workspace/
Goto this directory
/workspace/.metadata/.plugins/org.eclipse.debug.core/.launches/
Remove the debug file ".launch" you don't need.

- 1,436
- 14
- 16
It's very simple. Right click inside the internal browser and click "refresh".