Eclipse挂在启动

ami*_*mit 6 eclipse macos javahl

当我的电池耗尽时,我正在使用我的Macbook.现在Eclipse拒绝启动,卡在"Loading Workbench"上.底部的堆栈跟踪是在大约一分钟左右的时候按下^ C.

~/Downloads/eclipse$ ./Eclipse.app/Contents/MacOS/eclipse -clean -debug -consolelog 
Start VM: -Dosgi.requiredJavaVersion=1.5
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
-Dorg.eclipse.swt.internal.carbon.smallFonts
-clean
-Djava.class.path=/Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
-os macosx
-ws carbon
-arch x86
-showsplash
-launcher /Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS/eclipse
-name Eclipse
--launcher.library /Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.101.R34x_v20080731/eclipse_1115.so
-startup /Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
-clean
-debug
-consolelog
-vm /System/Library/Frameworks/JavaVM.framework
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
-Dorg.eclipse.swt.internal.carbon.smallFonts
-clean
-Djava.class.path=/Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar 
Install location:
    file:/Users/admin/Downloads/eclipse/
Configuration file:
    file:/Users/admin/Downloads/eclipse/configuration/config.ini loaded
Configuration location:
    file:/Users/admin/Downloads/eclipse/configuration/
Framework located:
    file:/Users/admin/Downloads/eclipse/plugins/org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
Framework classpath:
    file:/Users/admin/Downloads/eclipse/plugins/org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
Splash location:
    /Users/admin/Downloads/eclipse/plugins/org.eclipse.platform_3.3.101.v200902111700/splash.bmp
Debug options:
    file:/Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS/.options not found
Time to load bundles: 16
Starting application: 3649
!SESSION 2011-08-30 18:03:17.958 -----------------------------------------------
eclipse.buildId=M20090211-1700
java.version=1.6.0_26
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
Command-line arguments:  -os macosx -ws carbon -arch x86 -clean -debug -consolelog

!ENTRY org.eclipse.core.resources 2 10035 2011-08-30 18:03:22.073
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.tigris.subversion.clientadapter.javahl 1 0 2011-08-30 18:03:22.782
!MESSAGE Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = .:/Users/admin/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
^C
Exception in thread "Thread-1" org.eclipse.swt.SWTException: Invalid thread access
    at org.eclipse.swt.SWT.error(SWT.java:3777)
    at org.eclipse.swt.SWT.error(SWT.java:3695)
    at org.eclipse.swt.SWT.error(SWT.java:3666)
    at org.eclipse.swt.widgets.Widget.error(Widget.java:681)
    at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:341)
    at org.eclipse.swt.widgets.Shell.getShells(Shell.java:885)
    at org.eclipse.swt.widgets.Shell.kEventWindowHidden(Shell.java:1213)
    at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2044)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4171)
    at org.eclipse.equinox.launcher.JNIBridge._takedown_splash(Native Method)
    at org.eclipse.equinox.launcher.JNIBridge.takeDownSplash(JNIBridge.java:110)
    at org.eclipse.equinox.launcher.Main.takeDownSplash(Main.java:1863)
    at org.eclipse.equinox.launcher.Main$SplashHandler.run(Main.java:106)
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?如果没有其他建议,我想我会尝试安装JavaHL.Eclipse总是抱怨它,但它总是在之前启动.

Wol*_*ahl 11

http://off-topic.biz/en/eclipse-hangs-at-startup-showing-only-the-splash-screen/上显示的程序 对我有用

  1. cd .metadata/.plugins
  2. mv org.eclipse.core.resources org.eclipse.core.resources.bak
  3. 开始日食.(它应该显示错误消息或空工作区,因为找不到项目.)
  4. 关闭所有打开的编辑器选项卡.
  5. 退出日食.
  6. rm -rf org.eclipse.core.resources(删除新创建的目录.)
  7. mv org.eclipse.core.resources.bak/org.eclipse.core.resources(恢复原始目录.)
  8. 启动eclipse并开始工作.:-)


mvr*_*ijn 10

大多数解决方案删除或更改元数据,遗憾的是,这通常会删除项目中的SVN和库信息,这是一个主要的时间损失.

我找到了一个命令行开关(参见https://bugs.eclipse.org/bugs/show_bug.cgi?id=389738),清除任何通常导致启动挂起的已保存状态(打开窗口等): - clearPersistedState.

我现在提出了一系列选择:

  • 在终端中输入 <eclipse dir>/eclipse -clean -refresh -debug -consolelog -clearPersistedState
  • 打开导致问题的工作区
  • 等到eclipse完全启动并准备就绪,然后关闭它并正常再次启动它

总能为我解决启动问题.

  • eclipse -clean -clearPersistedState 在只使用 eclipse -clean 时仍然对我有用 (2认同)

ami*_*mit 2

是的,JavaHL 可能是最佳选择,因为安装它可以解决问题。奇怪的是,Eclipse 以前从来没有因为这个原因挂起,但在崩溃之后,它就挂了。