我是一个Java新手,很新的Eclipse/OSGi的等无法解析标准的Java进口
我想运行一个OSGi包。我已经在OSGi中安装了所有依赖的jar。 不过,虽然在OSGi控制台启动包,我收到以下错误:
org.osgi.framework.BundleException: The bundle could not be resolved.
Reason:Missing Constraint:Require-Bundle:org.eclipse.xtext;bundle-version="0.0.0"
标准的进口都没有解决。我该如何解决这个问题?
让我知道我是否应该发布更多信息。
osgi> diag 24
file:///C:\Users\<user>\Desktop\RuleEngineDependency
\org.eclipse.core.runtime_3.8.0.v20120912-155025.jar [24]
**Missing required bundle org.eclipse.osgi_[3.7.0,4.0.0).**
Missing required bundle org.eclipse.equinox.common_[3.6.100,4.0.0).
Missing required bundle org.eclipse.core.jobs_[3.2.0,4.0.0).
Missing required bundle org.eclipse.equinox.registry_[3.4.0,4.0.0).
Missing required bundle org.eclipse.equinox.preferences_[3.4.0,4.0.0).
Missing required bundle org.eclipse.core.contenttype_[3.3.0,4.0.0).
Missing optionally required bundle org.eclipse.core.runtime.compatibility.auth_[3.2.0,4.0.0).
Missing required bundle org.eclipse.equinox.app_1.0.0.
Missing imported package org.eclipse.core.internal.runtime.auth_0.0.0.
osgi> install file:///C:\Users\<user>\Desktop\RuleEngineDependency \org.eclipse.osgi_3.8.2.v20130124-134944.jar
Bundle id is 25
osgi> diag 25
file:///C:\Users\<user>\Desktop\RuleEngineDependency\org.eclipse.osgi_3.8.2.v20130124-134944.jar [25]
No unresolved constraints.
osgi> diag 24
file:///C:\Users\<user>\Desktop\RuleEngineDependency\org.eclipse.core.runtime_3.8.0.v20120912-155025.jar [24]
**Missing required bundle org.eclipse.osgi_[3.7.0,4.0.0).**
Missing required bundle org.eclipse.equinox.common_[3.6.100,4.0.0).
Missing required bundle org.eclipse.core.jobs_[3.2.0,4.0.0).
Missing required bundle org.eclipse.equinox.registry_[3.4.0,4.0.0).
Missing required bundle org.eclipse.equinox.preferences_[3.4.0,4.0.0).
Missing required bundle org.eclipse.core.contenttype_[3.3.0,4.0.0).
Missing optionally required bundle org.eclipse.core.runtime.compatibility.auth_[3.2.0,4.0.0).
Missing required bundle org.eclipse.equinox.app_1.0.0.
Missing imported package org.eclipse.core.internal.runtime.auth_0.0.0.
即使在添加org.eclipse.osgi包之后,它仍会列为缺少的依赖项。
我不确定,但看看这可以有任何帮助:http://www.eclipse.org/forums/index.php/t/317016/ –