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:
- edit the
eclipse.inifile located in your eclipse install directory and insert
-cleanas the first line.
- or edit the shortcut you use to start eclipse and add
-cleanas the first argument.
- or create a batch or shell script that calls the eclipse executable with the
-cleanargument. 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
other eclipse command line options: http://help.eclipse.org/indigo/index.jsp?topic=%2forg.eclipse.platform.doc.isv%2freference%2fmisc%2fruntime-options.html
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.
- open command prompt (cmd)
- go to eclipse application location (d:\eclipse)
- run command
for windows users: you can do as rta said or through command line do this: navigate to the locaiton of the eclipse executable then run:
first check the name of your executable using the command 'dir' on its path
two ways to run eclipse in clean mode.
1 ) in eclipse.ini file
- open the eclipse.ini file located in the eclipse installation directory.
- add -clean first line in the file.
- save the file.
- restart eclipse.
2 ) from command prompt (cmd/command)
- go to folder where eclipse installed.
- take the path of eclipse
- c:..\eclipse\eclipse.exe -clean
- press enter button
easier option is to
for mac os x yosemite i was able to use the open command.
usage: open [-e] [-t] [-f] [-w] [-r] [-n] [-g] [-h] [-b <bundle identifier>] [-a <application>] [filenames] [--args arguments]
help: open opens files from a shell.
by default, opens each file using the default application for that file.
if the file is in the form of a url, the file will be opened as a url.
-a opens with the specified application.
-b opens with the specified application bundle identifier.
-e opens with textedit.
-t opens with default text editor.
-f reads input from standard input and opens with textedit.
-f --fresh launches the app fresh, that is, without restoring windows. saved persistent state is lost, excluding untitled documents.
-r, --reveal selects in the finder instead of opening.
-w, --wait-apps blocks until the used applications are closed (even if they were already running).
--args all remaining arguments are passed in argv to the application's main() function instead of opened.
-n, --new open a new instance of the application even if one is already running.
-j, --hide launches the app hidden.
-g, --background does not bring the application to the foreground.
-h, --header searches header file locations for headers matching the given filenames, and opens them.
this worked for me:
open eclipse.app --args clean
- click on short cut
- right click -> properties
- add -clean in target clause and then start.
it will take much time then normal start and it will fresh up all resources.
-clean option is the way to go, as mentioned by the other answers.
make sure that you remove it from 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 eclipse plugins you have installed.
you can start eclipse in clean mode from the command line:
for clean mode: start the platform like
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.
- How to run eclipse in clean mode? what happens if we do so?
- What happens when I run an application on tomcat in Eclipse
- How to run an external tool in Eclipse in debug mode
- How to tell Eclipse what file to run in a PHP project?
- How can i know an application running in debug or run mode in eclipse
- How to do a clean build in eclipse and run a junit test case at startup?
- What causes imported Maven project in Eclipse to use Java 1.5 instead of Java 1.6 by default and how can I ensure it doesn't?
- How to simultaneously run all JUnit tests for a Eclipse Java project without Maven?
- how to run Eclipse -clean on a Mac?
- How to run Eclipse with different Java version?
- Run "mvn clean install" in Eclipse
- How to stop Eclipse from trying to run XML files?
- How to achieve that Eclipse clean and build (aka rebuild)?
- How to run Spring Boot web application in Eclipse itself?
- How to build and run Maven projects after importing into Eclipse IDE
- How to run a batch script (.bat file) from eclipse
- How do I run Eclipse using Oracle's new 1.7 JDK for the Mac?
- How to run a Maven Project In Tomcat From Eclipse
- How to run Eclipse launch configurations programmatically?
- How can I make the Mylyn GitHub Connector for Eclipse run authenticated requests?
- How to run a jar file in Eclipse
- How to know the command line used by Eclipse to run the java program?
- How do I configure Eclipse to run your tests automatically?
- How to run Eclipse memory analyzer on Mac os?
- How do I run an Eclipse launcher file in IntelliJ IDEA?
- How to run Eclipse without running JRE installation?
- How do I get the command-line for an Eclipse run configuration?
- How can I clean up Eclipse "run configurations"
- How to compile and run C++ with MinGW using Eclipse and CDT?
- Eclipse : how we take arguments for main when run
More Query from same tag
- OnClick method kills android application
- read a huge amount of data
- ADT Plugin not showing up in Eclipse Indigo
- Eclipse opens and then immediately closes after graphic appears
- Javah: Error: cannot access android.support.v7.app.ActionBarActivity
- OSGI Gradle Unresolved requirement: Import-Package: com.opencsv; version="[3.8.0,4.0.0)" Liferay IDE 3
- Java method invocation ambigious for javac but not for Eclipse
- Mupltiple Qt project files in one Eclipse project
- Android GridView Square Layout
- Android can't get debugger to go away eclipse
- Eclipse closes as soon as workbench loads
- Setting Up MobileFirst Dev Environment
- Curious to Know what Eclipse 'Show Heap Status' does
- eclipse auto complete malfunction or op. error
- Adding POM Dependency in Eclipse build path
- Android Hello, Gallery tutorial -- "R.styleable cannot be resolved"
- indexing and searching contents in project folder
- "windows.h" Not Found Using Eclipse SPARC bare-C Compiler
- Use Eclipse to run an existing Java web start application
- JAX-RS, GlassFish, Eclipse. A simple web service doesn't work
- find class associated by button id
- Eclipse Luna - Project explorer is empty after importing
- How do I get Java to recognise white space from an user input?
- OnePlusOne layout-large or layout-normal?
- Adding label to PolylineConnection in Draw2D
- Maven support in Eclipse, pom validate shows wrong errors
- Add a item to eclipse package explorer's right-click menu
- UnsupportedClassVersionError: org/apache/maven/plugin/compiler/TestCompilerMojo
- How do I detect if a button is clicked while holding shift in Java Eclipse AWT?
- Order and Export not working