tags:

views:

644

answers:

5

if something is not working properly.. or some plugins are loaded properly in my eclipse... i often get suggestion to open eclise in clean mode... so how to run in clean mode? and what happens if i do so?

+4  A: 

What it does:

if set to "true", any cached data used by the OSGi framework and eclipse runtime will be wiped clean. This will clean the caches used to store bundle dependency resolution and eclipse extension registry data. Using this option will force eclipse to reinitialize these caches.

How to use it:

  1. Edit the eclipse.ini file located in your and add it as the first argument on the first line.
  2. Edit the shortcut you use to start Eclipse and add it as the first argument.
  3. Create a batch or shell script that calls the Eclipse executable with the -clean argument. The advantage to this step is you can keep the script around and use it each time you want to clean out the workspace. You can name it something like eclipse-clean.bat (or eclipse-clean.sh).

(From: http://www.eclipsezone.com/eclipse/forums/t61566.html)

Other eclipse command line options: http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html

Ehrann Mehdan
I recommend (2), creating a 'second' eclipse shortcut with the clean option. You don't want it in the eclipse.ini file, because that would disable the useful OSGi caching and increase eclipse startup time. Use clean only when you feel that you have to.
Andreas_D
A: 

Check out this site

Look for "Cleaning My Configuration".

In the command prompt you must execute eclipse with the -clean option.

GrandPrix
A: 

You can start Eclipse in clean mode from the command line:

eclipse -clean
Spike Williams
A: 

For clean mode: start the platform like

eclipse -clean

That's all. The platform will clear some cached OSGi bundle information, it helps or is recommended if you install new plugins manually or remove unused plugins.

It will not affect any workspace related data.

Andreas_D
A: 

Using the -clean option is the way to go, as mentioned by the other answers. However, make sure that you take it back out of your .ini or shortcut after you've fixed the problem. It causes Eclipse to reevaluate all of the plugins everytime it starts and can dramatically increase startup time, depending on how many plugins you have in your Eclipse.

James Branigan