更改工作区后Eclipse将无法启动

时间:2013-01-28 17:40:48

标签: eclipse

我搞砸了我的Eclipse安装。我更改了工作区位置(File-> Switch Workspace)。现在它不会启动。我看到飞溅了几秒钟它关闭了。然后我尝试在命令行上使用-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)
...

1 个答案:

答案 0 :(得分:4)

中找到文件org.eclipse.ui.ide.prefs
  

蚀\配置\ .settings

文件夹中。

更改

  

SHOW_WORKSPACE_SELECTION_DIALOG =假

true