无法获得应用程序服务。确保解析并启动了org.eclipse.core.runtime包(请参阅config.ini)

时间:2015-05-21 08:47:54

标签: java eclipse macos eclipse-plugin

我的应用程序运行在eclipse上。有几个插件集成了eclipse。我创建了一个使用eclipse运行的构建设置。

但是eclipse启动失败,出现以下配置错误:


    !ENTRY org.eclipse.core.runtime 2 0 2015-05-21 14:01:50.272
    !MESSAGE Could not resolve module: org.eclipse.core.runtime [6]
          Unresolved requirement: Require-Bundle: javax.annotation; bundle-version="1.1.0"; visibility:="reexport"; resolution:="optional"
         Unresolved requirement: Require-Bundle: javax.inject; bundle-version="1.0.0"; visibility:="reexport"; resolution:="optional"
         Unresolved requirement: Require-Bundle: org.eclipse.core.jobs; bundle-version="[3.2.0,4.0.0)"; visibility:="reexport"


    !ENTRY org.eclipse.osgi 4 0 2015-05-21 14:01:50.274
    !MESSAGE Application error
    !STACK 1
    java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).

javax.ammotation,javax.inject,org.eclipse.core.jobs存在于插件中。

以下是使用的config.ini:


    #This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
    #Wed May 13 14:21:47 IST 2015
    org.eclipse.update.reconcile=false
    #eclipse.p2.profile=SDKProfile
    osgi.framework=file\:plugins/org.eclipse.osgi_3.10.2.v20150203-1939.jar
    equinox.use.ds=true
    #osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.1.0.v20131217-1203.jar@1\:start
    org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
    osgi.framework.extensions=reference\:file\:org.eclipse.osgi.compatibility.state_1.0.1.v20140709-1414.jar,reference\:file\:org.eclipse.equinox.region_1.2.0.v20140128-1636.jar,reference\:file\:org.eclipse.osgi.compatibility.plugins_1.0.0.v20131023-1243.jar
    osgi.bundles.defaultStartLevel=4
    osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@3:start, org.eclipse.core.runtime@start
    eclipse.product=
    eclipse.buildId=20150521-4013
    osgi.instance.area.default=/Users/admin/workspace
    eof=eof

使用eclipse sdk 4.4(MacOSX)

有什么建议吗?

0 个答案:

没有答案