sta*_*lar 5 java eclipse eclipse-kepler
我在 64 位 Ubuntu 上使用 Eclipse Kepler 64 位和 Sun JDK 1.7.0_25 64 位。当我使用 JDK 1.6 时,Eclipse 可以工作,但在升级到 JDK 1.7 后停止工作(使用webupd8.org的方法和流行的askubuntu解决方案),现在在启动时它告诉我有错误并检查configuration/xxx.log
文件。
这是它在启动时创建的每个日志文件内容的开头:
!SESSION 2013-07-08 15:38:11.495 -----------------------------------------------
eclipse.buildId=4.3.0.I20130605-2000
java.version=1.7.0_25
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.equinox.ds 4 0 2013-07-08 15:38:12.212
!MESSAGE [SCR] Exception while activating instance org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngineManager@b1320f9 of component org.eclipse.e4.ui.css.swt.theme
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
at java.lang.Class.getDeclaredMethods(Class.java:1845)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.getMethod(ServiceComponent.java:126)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:213)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
Run Code Online (Sandbox Code Playgroud)
我已经清理了工作区,运行了./eclipse -clean
但它没有通过徽标。还有什么需要检查/清洁的吗?
您需要在运行配置中包含适合您的机器的 SWT 插件。
Run Code Online (Sandbox Code Playgroud)1. Click Run -> Run Configurations... 2. Select the Run Configuration that is failing (on the left side) 3. Click the Plug-ins tab 4. In the "type filter text" box, type swt 5. Select the proper swt package for your machine. For me on OS X this was: org.eclipse.swt.cocoa.macosx.x86_64
然后正常运行就应该可以了。
归档时间: |
|
查看次数: |
7485 次 |
最近记录: |