Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable plugins on Eclipse startup

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?

like image 994
Timmmm Avatar asked Oct 01 '12 16:10

Timmmm


People also ask

How do I disable plugins in Eclipse?

You can disable a few plugins at startup via "Window > Preferences" from the menu under "General > Startup and Shutdown". Uncheck the items you don't want to run when you start Eclipse. This needs to be done for every workspace.

How do I remove Tabnine from Eclipse?

Go to Help > About Eclipse > Installation Details. Select ״Tabnine Eclipse Plugin", and click Uninstall.


4 Answers

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 1611571876423 -repository https://download.eclipse.org/releases/2020-12

Obviously replace the revision with the one you want to revert too. This says, please revert my Eclipse install to 1611571876423, and if you need any dependencies, look in https://download.eclipse.org/releases/2020-12 (Eclipse 4.18). If you're doing this for a different version of Eclipse, then change the URL as appropriate.

like image 53
irbull Avatar answered Oct 04 '22 12:10

irbull


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.

like image 27
xoned Avatar answered Oct 04 '22 12:10

xoned


Check this image of the Eclipse Indigo Settings:

Eclipse Indigo Settings

like image 42
Paulo Cheque Avatar answered Oct 04 '22 13:10

Paulo Cheque


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.

like image 25
Garrett Hall Avatar answered Oct 04 '22 12:10

Garrett Hall