Disable plugins on Eclipse startup

2019-03-19 03:05发布

问题:

I just installed a plugin for Eclipse, but as a result Eclipse will no longer start. It says "There was an error" or some such uninformative message.

How can I start Eclipse without it loading plugins so that I can actually uninstall the offending software?

回答1:

As another person mentioned, you can try the -clean option. However, if it still fails to load and you need to revert your install, you should NOT simply delete a plugin on disk. If Eclipse thinks a plugin is there, and suddenly it's removed, you will run into all sorts of problems in the future.

The best approach is to use the Eclipse director (a managing application) to revert your install (this comes installed with Eclipse). You will need to know what previous revision you would like to revert to. You can see all the previous revisions of your Eclipse install in /p2/org.eclipse.p2.engine/profileRegistry/ where profile name is likely something like SDKProfile. In here you will see a number of profiles. Each one represents a previous state of your Eclipse install. Find the revision you would like to revert to (they should all have a timestamp on them) and from the root of Eclipse execute the following command:

./eclipse -application org.eclipse.equinox.p2.director -revert 1348266115829 -repository http://download.eclipse.org/releases/juno

Obviously replace the revision with the one you want to revert too. This says, please revert my Eclipse install to 1348266115829, and if you need any dependencies, look in http://download.eclipse.org/releases/juno. If you're doing this for Indigo (Eclipse 3.7) then change the URL to http://download.eclipse.org/releases/indigo



回答2:

Try to start eclipse with the -clean option.

Or try to delete move the pluings and the features.

Posting the error-message is more useful than "there was an error". Look into the logfile or try to start from the console and post the error message here.

Edit: Irbull is right. Of course don't delete the files, just move them in another directory so you can move them back. His solution sounds very helpful and is even more professional.



回答3:

Check this image of the Eclipse Indigo Settings:



回答4:

You can try moving the plugin from the plugins directory. I don't think there is any "safe-mode" way to start Eclipse.

Once you can boot into Eclipse you can disable plugins individually by going to Help / About Eclipse / Installed software / Installation history and revert your installation.



回答5:

the first approach you should try is just to remove the related jars if you are pretty sure of what are supposed to be removed. I have tried this approach to remove a bunch of evil plugins which are hard to get rid of. Be sure to have a bak for those you are about to remove though