Eclipse RCP缺少约束/捆绑错误

时间:2023-01-12 15:45:06

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

当我尝试从Eclipse中执行我的RCP应用程序时,我收到以下错误消息:

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?

谁能告诉我我是如何解决这个问题的?

2 个解决方案

#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 :)

一个好的技巧也是进入Eclipse中的运行配置对话框,打开插件选项卡并单击“魔术”按钮“添加必需的包”,如果这标记窗口有未保存的更改,您知道添加了一些内容并且它可能有效:)

#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.

从这个线程:您可以首先使用包含“-console”命令的启动配置运行RCP应用程序:它将在“控制台”视图中为您提供OSGi控制台。这仅表示OSGi正在运行。

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.

如果可以,只需输入“ss”(表示简短状态)并点击返回。这将生成包含所有捆绑包的列表,包括其状态。为了追踪问题,这些信息很好看。

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

您还有文章“Where Is My Bundle”以获取更多信息。


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?

检查(特别是如果您不能执行上述操作,因为应用程序不会自行启动并且只建议您查看错误日志)产品配置的插件依赖项:是com.bah.gs.arts.jekyll.plugins。 JVLC_Runtime在那里显示?

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

它通常与导出列表问题有关,如此线程所示。

#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 :)

一个好的技巧也是进入Eclipse中的运行配置对话框,打开插件选项卡并单击“魔术”按钮“添加必需的包”,如果这标记窗口有未保存的更改,您知道添加了一些内容并且它可能有效:)

#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.

从这个线程:您可以首先使用包含“-console”命令的启动配置运行RCP应用程序:它将在“控制台”视图中为您提供OSGi控制台。这仅表示OSGi正在运行。

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.

如果可以,只需输入“ss”(表示简短状态)并点击返回。这将生成包含所有捆绑包的列表,包括其状态。为了追踪问题,这些信息很好看。

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

您还有文章“Where Is My Bundle”以获取更多信息。


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?

检查(特别是如果您不能执行上述操作,因为应用程序不会自行启动并且只建议您查看错误日志)产品配置的插件依赖项:是com.bah.gs.arts.jekyll.plugins。 JVLC_Runtime在那里显示?

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

它通常与导出列表问题有关,如此线程所示。