如果在我的Eclipse中有些东西不能正常工作,或者某些插件没有正确加载,我经常得到建议以干净模式打开Eclipse。
那么,如何在清洁模式下运行呢?如果我这么做了会怎么样?
如果在我的Eclipse中有些东西不能正常工作,或者某些插件没有正确加载,我经常得到建议以干净模式打开Eclipse。
那么,如何在清洁模式下运行呢?如果我这么做了会怎么样?
当前回答
对于清洁模式:启动平台喜欢
eclipse -clean
这是所有。平台将清除一些缓存的OSGi包信息,如果你手动安装新插件或删除不使用的插件,这是有帮助的。
它不会影响任何与工作空间相关的数据。
其他回答
对于清洁模式:启动平台喜欢
eclipse -clean
这是所有。平台将清除一些缓存的OSGi包信息,如果你手动安装新插件或删除不使用的插件,这是有帮助的。
它不会影响任何与工作空间相关的数据。
对于Mac OS X Yosemite,我可以使用open命令。
Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-b <bundle identifier>] [-a <application>] [filenames] [--args arguments]
Help: Open opens files from a shell.
By default, opens each file using the default application for that file.
If the file is in the form of a URL, the file will be opened as a URL.
Options:
-a Opens with the specified application.
-b Opens with the specified application bundle identifier.
-e Opens with TextEdit.
-t Opens with default text editor.
-f Reads input from standard input and opens with TextEdit.
-F --fresh Launches the app fresh, that is, without restoring windows. Saved persistent state is lost, excluding Untitled documents.
-R, --reveal Selects in the Finder instead of opening.
-W, --wait-apps Blocks until the used applications are closed (even if they were already running).
--args All remaining arguments are passed in argv to the application's main() function instead of opened.
-n, --new Open a new instance of the application even if one is already running.
-j, --hide Launches the app hidden.
-g, --background Does not bring the application to the foreground.
-h, --header Searches header file locations for headers matching the given filenames, and opens them.
这招对我很管用:
open eclipse.app --args clean
这将清除用于存储包依赖项解析和eclipse扩展注册表数据的缓存。使用此选项将强制eclipse重新初始化这些缓存。
打开命令提示符(cmd) 转到eclipse应用程序位置(D:\eclipse) 执行命令eclipse -clean
您可以从命令行以clean模式启动Eclipse:
eclipse -clean
正如其他答案所提到的,使用-clean选项是正确的方法。
确保在解决问题后将其从.ini或快捷方式中删除。它导致Eclipse在每次启动时都要重新评估所有的插件,并且会极大地增加启动时间,这取决于您安装了多少个Eclipse插件。