Eclipse在OSX Mountain Lion上进行干净安装后无法启动

6
我正在使用一台运行OSX 10.8.2的27英寸iMac电脑,安装了最新的Eclipse软件包(4.2.0),下载链接为http://www.eclipse.org/downloads/(Eclipse IDE for Java EE Developers, Mac OS X 64 Bit)。我解压了下载的文件,它创建了一个名为“eclipse”的目录。 在该目录中,我双击Eclipse应用程序。它运行了大约2秒钟,显示启动画面,然后出现错误消息:“发生错误。请参见配置文件1351540676859.log以获取详细信息。” 打开该日志文件后,我看到以下堆栈跟踪信息:
!SESSION 2012-10-29 15:57:56.642 -----------------------------------------------
eclipse.buildId=M20120914-1800
java.version=1.6.0_37
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product -keyring /Users/joshua/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/joshua/.eclipse_keyring -showlocation

!ENTRY org.eclipse.osgi 4 0 2012-10-29 15:58:02.633
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
    at org.eclipse.swt.widgets.Display.applicationWillFinishLaunching(Display.java:5053)
    at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5153)
    at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
    at org.eclipse.swt.widgets.Display.finishLaunching(Display.java:4849)
    at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5130)
    at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
    at org.eclipse.swt.internal.cocoa.NSApplication.finishLaunching(NSApplication.java:59)
    at org.eclipse.swt.widgets.Display.init(Display.java:2163)
    at org.eclipse.swt.graphics.Device.<init>(Device.java:131)
    at org.eclipse.swt.widgets.Display.<init>(Display.java:699)
    at org.eclipse.swt.widgets.Display.<init>(Display.java:690)
    at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:669)
    at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
    at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

这是我的Java版本:

Joshuas-iMac:Versions joshua$ java -version
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode

找到了一个与Eclipse论坛上的这个问题完全相同但未解决的帖子,链接在这里:http://www.eclipse.org/forums/index.php/m/766585/。 - Joshua W
1个回答

阿里云服务器只需要99元/年,新老用户同享,点击查看详情
0

尝试使用Eclipse IDE for Java Developers,而不是EE Developers(下载页面上的第三个选项)。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,