Eclispe Helios 插件开发目标平台模板 Base-RCP 损坏?

发布于 2024-09-10 08:27:19 字数 959 浏览 1 评论 0原文

我正在尝试在 Eclipse Helios 下创建一个标准的 osgi 包。

为此,我配置了我的目标平台,如下所示:

  1. Window ->首选项->插件开发->目标平台->添加
  2. 在选择模板和基本 RCP(仅限二进制)后,
  3. 我更改了名称并单击完成。

当我使用捆绑包的概述启动平台时,我在控制台中打印了以下错误:

!SESSION 2010-07-16 15:44:37.987 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Command-line arguments:  -dev file:C:/Documents and Settings/E364866/Desktop/calendar/antonio osgi tutorial/.metadata/.plugins/org.eclipse.pde.core/OSGI DynaResume/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -console

!ENTRY org.eclipse.ui 4 4 2010-07-16 15:44:44.659
!MESSAGE Unable to load UI activator

!ENTRY org.eclipse.ui 4 4 2010-07-16 15:44:44.659
!MESSAGE Unable to load UI activator
!STACK 0

我已设法通过取消选择 org.eclipse.ui 插件来运行平台在平台配置窗口中,但我不明白为什么默认选择这个插件。

I'm trying to create a standard osgi bundle under Eclipse Helios.

To do so, I've configured my Target Platform like this:

  1. Window -> Preferences -> Plug-in Development -> Target Platform -> Add
  2. After I choose Template and Base RCP (Binary Only)
  3. I changed the name and clicked Finish.

When I launch the platform using the Overview of my bundle, I've got this error printed in the console :

!SESSION 2010-07-16 15:44:37.987 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Command-line arguments:  -dev file:C:/Documents and Settings/E364866/Desktop/calendar/antonio osgi tutorial/.metadata/.plugins/org.eclipse.pde.core/OSGI DynaResume/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -console

!ENTRY org.eclipse.ui 4 4 2010-07-16 15:44:44.659
!MESSAGE Unable to load UI activator

!ENTRY org.eclipse.ui 4 4 2010-07-16 15:44:44.659
!MESSAGE Unable to load UI activator
!STACK 0

I've managed to make the platform run by deselecting the org.eclipse.ui plug-in in the platform configuration window, but I don't understand why this plug-in is selected by default.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

桜花祭 2024-09-17 08:27:19

引用org.eclipse.ui.internal.WorkbenchPlugin中的注释:

// The UI plugin needs to be initialized so that it can install the callback in PrefUtil,
// which needs to be done as early as possible, before the workbench
// accesses any API preferences.

org.eclipse.ui插件需要在您的插件之前加载。您可以通过给它一个小于您的捆绑包的起始级别的起始级别(可能设置为默认值 4)来解决此问题。

Quoting the comments in org.eclipse.ui.internal.WorkbenchPlugin:

// The UI plugin needs to be initialized so that it can install the callback in PrefUtil,
// which needs to be done as early as possible, before the workbench
// accesses any API preferences.

org.eclipse.ui plugin needs to load before your plug-in. You may fix this problem by giving it a start level less than your bundle's start level (which is probably set at default 4).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文