【问题标题】:could not find framework in eclipse RCP application在 Eclipse RCP 应用程序中找不到框架
【发布时间】:2010-12-22 09:34:03
【问题描述】:

我开发了一个 Eclipse RCP 应用程序,我从我自己的 Java 程序中调用它。
当我从命令提示符(windows)运行我自己的 Java 程序时,它完美地工作并给出了结果。

但是当我在 eclipse 3.2 中集成了 ant 构建脚本时,会出现以下问题:

!ENTRY org.eclipse.core.launcher 4 0 Dec 02, 2009 10:53:17.608
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.RuntimeException: Could not find framework
    at org.eclipse.core.launcher.Main.getBootPath(Main.java:395)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:174)
    at org.eclipse.core.launcher.Main.run(Main.java:704)
    at xxx.xxx.xxxx.MyCodeGenerator.main(MyCodeGenerator.java:13)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
    at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)

您能否帮我解决这个错误的可能原因。

【问题讨论】:

    标签: eclipse-rcp


    【解决方案1】:

    正如this thread 中提到的,你:

    • 不仅要将您希望导出的平台插件添加到您的功能的依赖插件列表中,

    • 但您还必须查看包含的插件列表

    (例如参见this project

    确保在启动 RCP 之前“验证插件”(请参阅​​ this thread)。
    使用启动配置对话框,在“插件”选项卡中,有一个“验证插件”按钮,您可以单击该按钮来验证是否满足“选定”插件的所有依赖关系。
    如果有一些错误,您可以点击“Add Required Plug-ins”更正错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-08-14
      • 2012-11-14
      • 1970-01-01
      • 1970-01-01
      • 2023-04-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多