Restarting Eclipse Clean If You Cannot Run Eclipse From A Command Line (Mac OSX)

ColdFusion Builder , Eclipse Add comments

So overnight an update to ColdFusion Builder was released. According to the update instructions, if you're running ColdFusion Builder as a plug-in to Eclipse (like I am), you need to start/restart Eclipse clean, which can be done by typing "eclipse -clean" at the command prompt within your Eclipse folder.

The problem I ran into was I couldn't do that on my MacBook Pro. I opend up a Terminal window, navigated to my Eclipse folder, tried the command, and was told "command not found." 

I had an eclipse exec file in the directory along with the normal Eclipse.app application bundle file, so I'm not sure why it didn't work. I probably either did something wrong or perhaps there's something funky about my Eclipse install.

But fortunately I found another way to launch Eclipse with the clean option in an old set of Eclipse (3.3) documentation.  Here's what I did (after installing the ColdFusion Builder update):

  • I opened a Finder window and navigated to my Eclipse directory.
  • I right-clicked on the Eclipse.app application bundle icon, and selected "Show Package Contents" from the context menu.
  • In the new Finder window that popped up, I went into Contents/MacOS, right-clicked on the eclipse.ini file, and chose to open it in TextEdit.
  • I added "-clean" to the top of the eclipse.ini file, saved the file, then closed it.
  • I then restarted Eclipse.
  • Once Eclipse was up and running, I re-opened the eclipse.ini file, removed the "-clean" line, and saved it again.

 

2 responses to “Restarting Eclipse Clean If You Cannot Run Eclipse From A Command Line (Mac OSX)”

  1. rich Says:
    cd /Applications/Eclipse/Eclipse.app/Contents/Resources/MacOS
    ./eclipse -clean

    voila!
  2. Brian Swartzfager Says:
    @rich: Thanks!

Leave a Reply