The type org.eclipse.core.runtime.IConfigurationElement cannot be resolved

谁说我不能喝 提交于 2019-12-10 17:48:57

问题


When building my Eclipse RCP Application, I get the following error.

The type org.eclipse.core.runtime.IConfigurationElement cannot be resolved. It is indirectly referenced from required .class files.

I have included the org.eclipse.core.runtime library in my dependencies, so I am not sure what the problem is.


回答1:


As mentioned in this thread

Don't include the jar files manually [in the plugin.xml file). Use the dependencies tab in your plugin.xml editor to manage the dependencies on the plugins.

Here is the graphical illustration of what that means:

alt text http://img91.imageshack.us/img91/923/eclipsercpruntime.png

Double-click on the MANIFEST.MF file, and through the 'Dependencies' tab, just add org.eclipse.core.runtime, and it will add other dependencies, including org.eclipse.equinox.registry, which includes your missing class!



来源:https://stackoverflow.com/questions/2393284/the-type-org-eclipse-core-runtime-iconfigurationelement-cannot-be-resolved

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!