2011-12-26 146 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