1

我搞砸了我的 Eclipse 安装。我更改了工作区位置(文件->切换工作区)。现在它不会启动。我看到了几秒钟的飞溅,然后它就关闭了。然后,我尝试在新旧工作区的命令行上使用 -data 参数,但行为相同。我也尝试重新启动机器。

eclipse\workspace.metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.ui.ide.prefs中,我为 SHOW_WORKSPACE_SELECTION_DIALOG 添加了最后一行,但没有区别。

EXIT_PROMPT_ON_CLOSE_LAST_WINDOW=false
IMPORT_FILES_AND_FOLDERS_RELATIVE=true
IMPORT_FILES_AND_FOLDERS_TYPE=23,1
PROBLEMS_FILTERS_MIGRATE=true
SWITCH_PERSPECTIVE_ON_PROJECT_CREATION=always
TASKS_FILTERS_MIGRATE=true
eclipse.preferences.version=1
platformState=1346849854920
quickStart=false
tipsAndTricks=true
SHOW_WORKSPACE_SELECTION_DIALOG=true

我该如何取回它?

(编辑)我删除了 .metadata 目录,然后 Eclipse 重新启动。

从日志文件中截取:

!SESSION 2013-01-28 10:35:51.245 -----------------------------------------------
eclipse.buildId=M20120914-1800
java.version=1.7.0_07
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.ui 4 4 2013-01-28 10:32:40.278
!MESSAGE Unhandled Exception

!ENTRY org.eclipse.ui 4 0 2013-01-28 10:32:40.278
!MESSAGE Error occurred during status handling
!STACK 0
java.lang.NullPointerException
    at org.eclipse.ui.internal.statushandlers.StatusHandlerRegistry.<init>(StatusHandlerRegistry.java:72)
...
!ENTRY org.eclipse.equinox.p2.ui.sdk.scheduler 4 0 2013-01-28 10:32:40.294
!MESSAGE Unable to execute early startup code for an extension
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.equinox.p2.ui.sdk.scheduler" was unable to instantiate class "org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler".
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
...
!SUBENTRY 1 org.eclipse.equinox.registry 4 1 2013-01-28 10:32:40.294
!MESSAGE Plug-in "org.eclipse.equinox.p2.ui.sdk.scheduler" was unable to instantiate class "org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler".
!STACK 0
java.lang.NullPointerException
    at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler.<init>(AutomaticUpdateScheduler.java:68)
...
!ENTRY org.eclipse.equinox.p2.ui.sdk.scheduler 4 0 2013-01-28 10:32:40.294
!MESSAGE Unable to execute early startup code for an extension
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.equinox.p2.ui.sdk.scheduler" was unable to instantiate class "org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler".
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
...
!SUBENTRY 1 org.eclipse.equinox.registry 4 1 2013-01-28 10:32:40.294
!MESSAGE Plug-in "org.eclipse.equinox.p2.ui.sdk.scheduler" was unable to instantiate class "org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler".
!STACK 0
java.lang.NullPointerException
    at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler.<init>(AutomaticUpdateScheduler.java:68)
...
!ENTRY org.eclipse.ui 4 0 2013-01-28 10:32:40.294
!MESSAGE Error occurred during status handling
!STACK 0
java.lang.NullPointerException
    at org.eclipse.ui.internal.statushandlers.StatusHandlerRegistry.<init>(StatusHandlerRegistry.java:72)
...
!ENTRY org.eclipse.core.jobs 2 2 2013-01-28 10:32:40.809
!MESSAGE Job found still running after platform shutdown.  Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceDropAdapter$1

!ENTRY org.eclipse.core.jobs 2 2 2013-01-28 10:32:40.809
!MESSAGE Job found still running after platform shutdown.  Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceDropAdapter$1

!ENTRY org.eclipse.ui 4 0 2013-01-28 10:32:40.809
!MESSAGE Error occurred during status handling
!STACK 0
java.lang.NullPointerException
    at org.eclipse.ui.internal.statushandlers.StatusHandlerRegistry.<init>(StatusHandlerRegistry.java:61)
...
4

1 回答 1

4

org.eclipse.ui.ide.prefs在你的文件中找到

eclipse\配置\.settings

文件夹。

改变

SHOW_WORKSPACE_SELECTION_DIALOG=false

true.

于 2013-01-28T17:45:29.430 回答