无法解析捆绑包“org.eclipse.core.runtime”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24558273/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Bundle 'org.eclipse.core.runtime' cannot be resolved
提问by clockworkgeek
I recently upgraded from Eclipse Kepler to Luna. A plugin I had been working on is now showing build errors without any source being changed.
我最近从 Eclipse Kepler 升级到 Luna。我一直在开发的一个插件现在显示构建错误,而没有更改任何源。
Here is an extract from my MANIFEST.MF,
这是我的 MANIFEST.MF 的摘录,
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.7.0",
org.eclipse.ui;bundle-version="3.7.0",
org.eclipse.ui.ide;bundle-version="3.7.0",
org.eclipse.core.resources;bundle-version="3.7.0",
org.eclipse.ui.forms;bundle-version="3.6.0",
org.eclipse.wst.sse.ui;bundle-version="1.3.0",
org.eclipse.jface.text;bundle-version="3.8.100",
org.eclipse.ui.workbench.texteditor;bundle-version="3.8.101",
org.eclipse.ui.views;bundle-version="3.6.0"
None of the core
or ui
bundles are resolved. I don't think Eclipse could even run without them and their equivalent .jar files are present and readable and haven't been modified as part of the upgrade, so they are not actually missing. When I try to add dependencies on the Dependencies tab the problem bundles do not show.
没有一个core
或ui
包被解析。我不认为 Eclipse 甚至无法在没有它们的情况下运行,并且它们的等效 .jar 文件存在且可读,并且没有作为升级的一部分进行修改,因此它们实际上并没有丢失。当我尝试在 Dependencies 选项卡上添加依赖项时,问题包没有显示。
Eclipse was upgraded by the Arch Linux package manager. I mention it for completeness but believe it is likely identical to any other upgrade mechanism. I also tried creating a new plug-in project but the same happens, I guess this means it's a global setting. I'm relatively new to PDE and so far haven't had a need to change any settings.
Eclipse 由 Arch Linux 包管理器升级。我提到它是为了完整性,但相信它可能与任何其他升级机制相同。我也尝试创建一个新的插件项目,但同样发生了,我猜这意味着它是一个全局设置。我对 PDE 比较陌生,到目前为止还不需要更改任何设置。
回答by nitind
From the preference page (Preferences > Plug-in Development > Target Platform
), try Removing the Running Platform target definition, Applying, and then Restoring Defaults. Maybe it's just stale and pointing to the jars that it doesn't know Arch has changed about.
在首选项页面 ( Preferences > Plug-in Development > Target Platform
) 中,尝试删除运行平台目标定义、应用和恢复默认值。也许它只是陈旧并指向它不知道 Arch 已经改变的罐子。