【问题标题】:Eclipse only running with -clean -refreshEclipse 仅使用 -clean -refresh 运行
【发布时间】:2014-02-06 16:31:34
【问题描述】:

只有当我像这样从终端运行它时,我的 Eclipse 才会打开

/Users/Me/Documents/eclipse/eclipse -clean -refresh

如何让它正常打开?现在,如果我尝试,它会挂在中间。

我也试过了

rm /Users/Me/Documents/workspace/.metadata/.lock

这是日志中的重复错误

!ENTRY org.eclipse.core.resources 2 10035 2014-02-05 16:58:18.820
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.core.net 1 0 2014-02-05 15:26:07.148
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
!SESSION 2014-02-05 16:58:15.519 -----------------------------------------------
eclipse.buildId=4.3.0.M20130911-1000
java.version=1.6.0_65
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product -keyring /Users/William/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/Me

/.eclipse_keyring -showlocation

【问题讨论】:

    标签: java eclipse macos


    【解决方案1】:

    您是否试图完全避免使用 -clean?

    如果没有,您始终可以在 Eclipse 安装目录中的 eclipse.ini 文件的第一行添加“-clean”值。

    【讨论】:

    • 我想知道问题的根源,这样我就可以完全避免它,我的好奇心想知道为什么会发生这种情况。但这可能是一个更好的短期解决方案,然后总是从终端运行它。
    • 您可以查看工作区 .metadata 目录中的日志文件:wiki.eclipse.org/FAQ_Where_can_I_find_that_elusive_.log_file%3F。另外,你的eclipse的配置目录中可能还有其他日志。
    • 作为注释,您必须在 -startup 下添加 args 才能使其工作,所以像这样,-startup -clean -refresh
    • 我添加了似乎是原因的重复错误。
    • 这是我过去使用过的一个潜在解决方案:stackoverflow.com/questions/207843/…。或者你可以试试这个:dev.zhourenjian.com/blog/2007/11/07/…
    猜你喜欢
    • 2013-11-16
    • 1970-01-01
    • 1970-01-01
    • 2021-04-23
    • 2020-08-20
    • 2015-11-23
    • 2013-07-31
    • 2016-12-31
    • 2023-03-16
    相关资源
    最近更新 更多