Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
macosx上的Eclipse:org.osgi.service.application.ApplicationException:未找到应用程序id_Eclipse_Macos - Fatal编程技术网

macosx上的Eclipse:org.osgi.service.application.ApplicationException:未找到应用程序id

macosx上的Eclipse:org.osgi.service.application.ApplicationException:未找到应用程序id,eclipse,macos,Eclipse,Macos,我的macbook pro和新安装的eclipse出现问题。 我想分享几个小时的困惑后我得到的解决方案 问题:启动eclipse Helios不起作用。出现一个弹出窗口,建议查看日志文件/Applications/eclipse/configuration/.log,其中包含: !SESSION 2011-07-05 14:05:17.027 ----------------------------------------------- eclipse.buildId=M20110210-120

我的macbook pro和新安装的eclipse出现问题。
我想分享几个小时的困惑后我得到的解决方案

问题:启动eclipse Helios不起作用。出现一个弹出窗口,建议查看日志文件
/Applications/eclipse/configuration/.log
,其中包含:

!SESSION 2011-07-05 14:05:17.027 -----------------------------------------------
eclipse.buildId=M20110210-1200
java.version=1.6.0_26
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product -keyring /Users/alessia/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/alessia/.eclipse_keyring -showlocation

!ENTRY org.eclipse.osgi 4 0 2011-07-05 14:05:18.260
!MESSAGE Application error
!STACK 1
org.osgi.service.application.ApplicationException: No application id has been found.
        at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:262)
        at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
        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:369)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        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:620)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
原因:似乎发生了一个解析异常,但是eclipse会吃掉它并只生成上面的无用信息

操作系统版本: 系统版本:Mac OS X 10.6.8(10K540) 内核版本:达尔文10.8.0

My config.ini:

#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
#Mon May 30 12:48:24 CEST 2011
org.eclipse.update.reconcile=false
eclipse.p2.profile=epp.package.java
osgi.instance.area.default=@user.home/Documents/workspace
osgi.framework=file\:plugins/org.eclipse.osgi_3.6.2.R36x_v20110210.jar
equinox.use.ds=true
eclipse.buildId=M20110210-1200
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar@1\:start
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=org.eclipse.epp.package.java.product
osgi.splashPath=platform\:/base/plugins/org.eclipse.platform
osgi.framework.extensions=
osgi.bundles.defaultStartLevel=4
eclipse.p2.data.area=@config.dir/../p2/
eclipse.application=org.eclipse.ui.ide.workbench
  • 删除文件
    /Application/eclipse/configuration/org.eclipse.core.runtime/.extraData.9
    /Application/eclipse/configuration/org.eclipse.core.runtime/.mainData.9
  • 删除共享库文件夹中的所有XML解析器。在我的例子中,我在
    /Library/Java/Extensions
    中有
    xercesImpl.jar
    。为了确定,我在/tmp中移动了目录的所有内容
  • 重新启动eclipse
  • 呼吸…现在应该可以了
  • /Library/Java/Extensions

  • 就这些。希望这能帮助你

    我在雪豹上运行了各种版本的Helios,没有问题。
    /Applications/eclipse/configuration/config.ini
    看起来像什么?另外,什么版本的OSX?请把这篇文章分成两部分:一个问题和一个答案。谢谢很好,先生,我有您的问题的副本,但它对我不起作用,'org.eclipse.core.runtime'目录是空的,/Library/Java/Extensions也是空的。。你能帮我一下吗?这对我来说非常有效……如果隐藏文件没有显示(默认情况下不会显示),下面介绍如何操作:这是Selenium安装的救命稻草,导致我无法安装或运行Eclipse。非常感谢。