Eclipse RCP Missing Constraint / Bundle Error

别来无恙 提交于 2019-11-27 01:54:56

问题


When I try to execute my RCP application from within Eclipse I get the following error message:

com.bah.gs.arts.jekyll.plugins.VideoLog
    Missing Constraint: Required Bundle: com.bah.gs.arts.jekyll.plugins.JVLC_Runtime; bundle-version="0.9.1"

Can someone tell me how I resolve this?


回答1:


A good trick is also to go into the run configuration dialog in Eclipse, open the Plugins tab and click the "Magic" button "add required bundles", if this marks the window as having unsaved changes you know something was added and it might work :)




回答2:


From this thread:
You could start by running your RCP application with a launch configuration including the "-console" command: that will offer you the OSGi console in the "Console" view. This only means that OSGi is running.

Should look like this:

OSGi>

If this is available, just type "ss" (for short status) and hit return. This will result in a list with all your bundles including their status. This information would be good to see in order to track down the problem.

You have also the article "Where Is My Bundle" for further informations.


Check also (especially if you cannot do the above, because the application just does not launch itself and only propose you to see the error logs) the plugins dependencies of your product configuration:
is com.bah.gs.arts.jekyll.plugins.JVLC_Runtime displayed there?

It is often related to an export list problem, as illustrated by this thread.



来源:https://stackoverflow.com/questions/1028573/eclipse-rcp-missing-constraint-bundle-error

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