2011-12-26 173 views
0

我的eclipse包中有以下错误。我正试图运行已经存在的代码,由另一个不再可用的人员完成。Java eclipse包编译错误

这是什么意思?

Multiple markers at this line 
    - The type org.eclipse.core.runtime.IConfigurationElement cannot be resolved. It is indirectly referenced from  required .class files 
    - The type org.eclipse.core.runtime.IConfigurationElement cannot be resolved. It is indirectly referenced from  required .class files 

cannot be resolvedindirectly referenced from required .class是什么意思?

如果我应该导入这些类/接口,我可以在哪里找到它们?

+0

检查http://stackoverflow.com/questions/2393284/the-type-org-eclipse-core-runtime-iconfigurationelement-cannot-be-resolved – 2011-12-26 06:58:06

+0

它似乎与创建一些eclipse插件有关... isn是吗? – Matteo 2012-01-11 12:41:38

回答

0

如果您在其他插件中引用代码,则需要确保将该插件声明为插件清单中的依赖项。

+0

什么是插件清单?如何将插件声明为依赖项? – user1053375 2011-12-26 08:42:57

+0

你的项目是一个插件项目吗?如果没有,那么我的评论可能不适用。虽然如果不是,那么很难看出你为什么触及IConfigurationElement。 – 2011-12-26 08:47:16

0

您试图找到org.eclipse.core.runtime.IConfigurationElement类中的插件,然后将该插件导入到您的项目中。

+0

如何在eclipse中导入插件 – user1053375 2011-12-26 08:41:55