how to run Eclipse -clean on a Mac?
I can run eclipse -clean
on my PC, but on my Mac, the executable is Eclipse.app -- how do you run that with arguments on the command-line?
If you CD to the eclipse installation directory using terminal, then you will see there is a directory called eclipse.app
. CD to Eclipse.app\Contents\MacOS
under that directory there should be an executable called eclipse
.
I believe you can launch eclipse from the commandline by executing the eclipse
executable with the -clean
argument, as below:
./eclipse -clean
Quote: "On Mac OS X, you start Eclipse by double clicking the Eclipse application. If you need to pass arguments to Eclipse, you'll have to edit the eclipse.ini file inside the Eclipse application bundle: select the Eclipse application bundle icon while holding down the Control Key. This will present you with a popup menu. Select "Show Package Contents" in the popup menu. Locate eclipse.ini file in the Contents/MacOS sub-folder and open it with your favorite text editor to edit the command line options."
Find more here: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Frunning_eclipse.htm