See You Again

eclipse无法启动

同事给我传了一个 eclipse,到我电脑上无法打开,弹窗提示我 java was started by returned exit code=13,网上搜到的各种解决方案都不行。

看到 configuration目录下多了一些日志文件,打开一看,原来是启动的错误日志:

  1. java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM
  2. at org.eclipse.swt.internal.Library.loadLibrary(Library.java:263)
  3. at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
  4. at org.eclipse.swt.internal.C.<clinit>(C.java:21)
  5. at org.eclipse.swt.widgets.Display.<clinit>(Display.java:138)
  6. at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:653)
  7. at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
  8. at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154)
  9. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96)
  10. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  11. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  12. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  13. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
  14. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
  15. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  16. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  17. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  18. at java.lang.reflect.Method.invoke(Unknown Source)
  19. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
  20. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
  21. at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
  22. at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

联想可能是 SWT 这个库不兼容,到 plugins 目录下,果然发现有一个 org.eclipse.swt_3.100.1.v4236b.jar 的包,去官网下载了一个64位的 SWT 替换掉这个,就能跑通了。

虽然不是很懂,但总归解决了问题——Google + 创造力。

2016-08-17 喜欢

Copyright © 2015-2018 转载请注明出处

回到顶部 ↑