如果在我的Eclipse中有些东西不能正常工作,或者某些插件没有正确加载,我经常得到建议以干净模式打开Eclipse。
那么,如何在清洁模式下运行呢?如果我这么做了会怎么样?
如果在我的Eclipse中有些东西不能正常工作,或者某些插件没有正确加载,我经常得到建议以干净模式打开Eclipse。
那么,如何在清洁模式下运行呢?如果我这么做了会怎么样?
当前回答
对于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
其他回答
Windows用户: 你可以像RTA说的那样,或者通过命令行这样做: 导航到eclipse可执行文件的位置,然后运行:
eclipse.lnk -clean
首先在可执行文件的路径上使用'dir'命令检查可执行文件的名称
更简单的选择是 使用。/eclipse -clean
对于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
您可以从命令行以clean模式启动Eclipse:
eclipse -clean
在清洁模式下运行eclipse的两种方法。
1)在Eclipse.ini文件中
打开Eclipse安装目录中的Eclipse .ini文件。 在文件中添加-clean第一行。 保存文件。 重新启动Eclipse。
2)从命令提示符(cmd/ Command)
转到安装Eclipse的文件夹。 以Eclipse为例 C: . . \ eclipse \ eclipse.exe抹杀的 按回车键