Eclipse 无法在干净的工作区中启动

Eclipse 无法在干净的工作区中启动

我在任何类型的工作区(全新的或者已经有数据)中启动任何版本的 eclipse 时都遇到了问题。

当我将操作系统从 Ubuntu 13.10 升级到 14.04 并尝试重新启动我一直在使用的 eclipse(实际上是 Springsource 工具套件)时,问题就开始了。

我尝试过清理工作区中的 .metadata、干净的工作区、Eclipse 3、8 和 4.2 版本以及不同 JVM 中可供下载的最新 STS。结果总是相同的...当我启动 Eclipse 时,在显示启动画面、工作区对话框和界面后,它会冻结并关闭,没有任何错误消息。

这是我收到的控制台日志:

➜  sts-3.5.0.RELEASE  ./STS -clean -refresh -debug -consolelog -clearPersistedState
Start VM: /usr/lib/jvm/jdk1.7.0_45/bin/java
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-XX:MaxPermSize=256m
-jar /home/esteban/springsource/sts-3.5.0.RELEASE//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/esteban/springsource/sts-3.5.0.RELEASE/STS
-name STS
--launcher.library /home/esteban/springsource/sts-3.5.0.RELEASE//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807/eclipse_1502.so
-startup /home/esteban/springsource/sts-3.5.0.RELEASE//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 44b8014
-product org.springsource.sts.ide
-clean
-refresh
-debug
-consolelog
-clearPersistedState
-vm /usr/lib/jvm/jdk1.7.0_45/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-XX:MaxPermSize=256m
-jar /home/esteban/springsource/sts-3.5.0.RELEASE//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar 
Install location:
    file:/home/esteban/springsource/sts-3.5.0.RELEASE/
Configuration file:
    file:/home/esteban/springsource/sts-3.5.0.RELEASE/configuration/config.ini loaded
Configuration location:
    file:/home/esteban/springsource/sts-3.5.0.RELEASE/configuration/
Framework located:
    file:/home/esteban/springsource/sts-3.5.0.RELEASE/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
Loading extension: reference:file:org.eclipse.equinox.weaving.hook_1.0.200.I20130319-1000.jar
    eclipse.properties not found
Loading extension: reference:file:org.eclipse.fx.osgi_0.9.0.201401250701.jar
    eclipse.properties not found
Framework classpath:
    file:/home/esteban/springsource/sts-3.5.0.RELEASE/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
    file:/home/esteban/springsource/sts-3.5.0.RELEASE/plugins/
    file:/home/esteban/springsource/sts-3.5.0.RELEASE/plugins/org.eclipse.equinox.weaving.hook_1.0.200.I20130319-1000.jar
    file:/home/esteban/springsource/sts-3.5.0.RELEASE/plugins/org.eclipse.fx.osgi_0.9.0.201401250701.jar
Splash location:
    /home/esteban/springsource/sts-3.5.0.RELEASE/configuration/org.eclipse.equinox.launcher/org.springsource.sts_3.5.0.201404011851-RELEASE/splash.bmp
Gtk-Message: Failed to load module "overlay-scrollbar"
Debug options:
    file:/home/esteban/springsource/sts-3.5.0.RELEASE/.options not found
Time to load bundles: 54
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
Starting application: 9910
org.eclipse.m2e.logback.configuration: Logback config file: /home/esteban/Documents/workspace-sts-3.5.0.RELEASE/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.4.1.20140328-1905.xml
org.eclipse.m2e.logback.configuration: Initializing logback
org.eclipse.m2e.logback.configuration: eclipse.consoleLog=true
!SESSION 2014-04-26 13:24:39.103 -----------------------------------------------
eclipse.buildId=3.5.0.201404011851-RELEASE-e38
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.springsource.sts.ide -refresh -clearPersistedState
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.springsource.sts.ide -clean -refresh -debug -consolelog -clearPersistedState

!ENTRY org.eclipse.ui 4 4 2014-04-26 13:24:55.424
!MESSAGE Unable to find view with id: com.springsource.sts.roo.ui.rooShellView, when creating perspective com.springsource.sts.ide.perspective

!ENTRY org.eclipse.ui.workbench 2 0 2014-04-26 13:25:03.208
!MESSAGE A handler conflict occurred.  This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2014-04-26 13:25:03.209
!MESSAGE Conflict for 'AUTOGEN:::org.springsource.ide.eclipse.commons.launch.actionSet/org.springsource.ide.eclipse.commons.launch.relaunch.action':
HandlerActivation(commandId=AUTOGEN:::org.springsource.ide.eclipse.commons.launch.actionSet/org.springsource.ide.eclipse.commons.launch.relaunch.action,
    handler=ActionDelegateHandlerProxy(null,org.springsource.ide.eclipse.commons.ui.launch.StopProcessPullDownToolbarDelegate),
    expression=AndExpression(ActionSetExpression(org.springsource.ide.eclipse.commons.launch.actionSet,org.eclipse.ui.internal.WorkbenchWindow@1a70ad13),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@1a70ad13)),sourcePriority=16640)
HandlerActivation(commandId=AUTOGEN:::org.springsource.ide.eclipse.commons.launch.actionSet/org.springsource.ide.eclipse.commons.launch.relaunch.action,
    handler=ActionDelegateHandlerProxy(null,org.springsource.ide.eclipse.commons.ui.launch.RelaunchProcessPullDownToolbarDelegate),
    expression=AndExpression(ActionSetExpression(org.springsource.ide.eclipse.commons.launch.actionSet,org.eclipse.ui.internal.WorkbenchWindow@1a70ad13),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@1a70ad13)),sourcePriority=16640)

就这样。它关闭了,我不知道还能做什么。你知道问题出在哪里吗?

答案1

我终于意识到问题出在哪里了。这与反复报告的菜单错误有关,例如:Eclipse 菜单被截断或不显示

我按照那篇文章中的说明操作,在 STS.ini 中增强了 PermGem,然后一切又开始正常工作了 :)

答案2

我重新安装了 Ubuntu 14.04。安装了 Oracle Java JDK 1.8,安装了 STS(Spring 工具套件)并启动。它冻结了三次,不得不求助于 Alt + Sys Rq + REISUB。安装了更新。默认情况下,交换被禁用。因此,启用了 2Gb 交换。检查了您的问题并使用了您的命令行调用。STS 正常启动。启动时它会冻结一段时间,但会恢复正常工作。

相关内容