如何在干净模式下运行 eclipse?如果我们这样做会怎样? [英] How to run eclipse in clean mode? what happens if we do so?

查看:23
本文介绍了如何在干净模式下运行 eclipse?如果我们这样做会怎样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我的 Eclipse 中某些功能不正常或某些插件未正确加载,我经常收到建议以干净模式打开 Eclipse.

If something is not working properly or some plug-ins are not loaded properly in my Eclipse I often get suggestion to open Eclipse in clean mode.

那么,如何在干净模式下运行?如果我这样做会怎样?

So, how to run in clean mode? And what happens if I do so?

推荐答案

它的作用:

如果设置为true",则使用任何缓存数据通过 OSGi 框架和 eclipse运行时将被清除干净.这会清理用于存储包的缓存依赖解析和eclipse扩展注册表数据.使用这个选项将强制日食重新初始化这些缓存.

if set to "true", any cached data used by the OSGi framework and eclipse runtime will be wiped clean. This will clean the caches used to store bundle dependency resolution and eclipse extension registry data. Using this option will force eclipse to reinitialize these caches.

使用方法:

  • 编辑位于 Eclipse 安装目录中的 eclipse.ini 文件,并在第一行插入 -clean.
  • 或者编辑用于启动 Eclipse 的快捷方式并将 -clean 添加为第一个参数.
  • 或者创建一个批处理或 shell 脚本,使用 -clean 参数调用 Eclipse 可执行文件.此步骤的优点是您可以保留脚本并在每次要清理工作区时使用它.您可以将其命名为eclipse-clean.bat(或eclipse-clean.sh).
  • Edit the eclipse.ini file located in your Eclipse install directory and insert -clean as the first line.
  • Or edit the shortcut you use to start Eclipse and add -clean as the first argument.
  • Or create a batch or shell script that calls the Eclipse executable with the -clean argument. The advantage to this step is you can keep the script around and use it each time you want to clean out the workspace. You can name it something like eclipse-clean.bat (or eclipse-clean.sh).

(来自:http://www.eclipsezone.com/eclipse/forums/t61566.html)

其他eclipse命令行选项:http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html

Other eclipse command line options: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html

这篇关于如何在干净模式下运行 eclipse?如果我们这样做会怎样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆