在 Eclipse 启动时禁用插件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12677369/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 19:07:10  来源:igfitidea点击:

Disable plugins on Eclipse startup

eclipsepluginsstartupmetrics

提问by Timmmm

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.

我刚刚为 Eclipse 安装了一个插件,但结果 Eclipse 将不再启动。它说“有一个错误”或一些此类信息不足的消息。

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

如何在不加载插件的情况下启动 Eclipse,以便我可以实际卸载有问题的软件?

回答by irbull

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 NOTsimply 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.

正如另一个人提到的,您可以尝试 -clean 选项。但是,如果仍然不能加载,你需要恢复你的安装,你应该不是简单地删除磁盘上的一个插件。如果 Eclipse 认为有插件存在,然后突然将其删除,那么您将来会遇到各种问题。

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 Director(一个管理应用程序)来恢复您的安装(它随 Eclipse 一起安装)。您需要知道要恢复到哪个以前的修订版。您可以在 /p2/org.eclipse.p2.engine/profileRegistry/ 中看到 Eclipse 安装的所有先前修订版,其中配置文件名称可能类似于 SDKProfile。在这里,您将看到许多配置文件。每个都代表 Eclipse 安装的先前状态。找到您想要恢复的修订版(它们都应该有时间戳),然后从 Eclipse 的根目录执行以下命令:

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

./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

显然,将修订版替换为您也想还原的修订版。这表示,请将我的 Eclipse 安装恢复为 1348266115829,如果您需要任何依赖项,请查看http://download.eclipse.org/releases/juno。如果您为 Indigo (Eclipse 3.7) 执行此操作,请将 URL 更改为http://download.eclipse.org/releases/indigo

回答by xoned

Try to start eclipse with the -cleanoption.

尝试使用该-clean选项启动 eclipse 。

Or try to deletemove 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.

编辑:Irbull 是对的。当然不要删除文件,只需将它们移动到另一个目录中,以便将它们移回。他的解决方案听起来很有帮助,而且更专业。

回答by Paulo Cheque

Check this image of the Eclipse Indigo Settings:

检查 Eclipse Indigo 设置的这张图片:

Eclipse Indigo Settings

Eclipse Indigo 设置

回答by Garrett Hall

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

您可以尝试从 plugins 目录移动插件。我不认为有任何“安全模式”的方式来启动 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.

一旦您可以启动到 Eclipse,您就可以通过转到帮助 / 关于 Eclipse / 已安装的软件 / 安装历史记录来单独禁用插件并恢复您的安装。

回答by idotu

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

如果您非常确定应该删除什么,则您应该尝试的第一种方法是删除相关的 jar。我尝试过这种方法来删除一堆难以摆脱的邪恶插件。不过,请务必为您将要移除的那些人准备一份