在Eclipse RCP应用程序中找不到框架 [英] could not find framework in eclipse RCP application

查看:121
本文介绍了在Eclipse RCP应用程序中找不到框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个从我自己的Java程序调用的eclipse RCP应用程序。

当我从命令提示符(窗口)运行我自己的Java程序时,它可以正常工作并给出结果。 / p>

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

 !ENTRY org.eclipse.core.launcher 4 0 Dec 02,2009 10:53:17.608 
!MESSAGE启动Eclipse平台的异常:
!STACK
java.lang.RuntimeException:在org.eclipse.core.launcher.Main.getBootPath(Main.java:395)
处在org.eclipse.core.launcher.Main.basicRun( Main.java:174)org.eclipse.core.launcher.Main.run(Main.java:704)
xxx.xxx.xxxx.MyCodeGenerator.main(MyCodeGenerator.java:13)
在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)
在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
在sun.ref lect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
在java.lang.reflect.Method.invoke(Method.java:585)
在org.apache.tools.ant.taskdefs.ExecuteJava。在org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)上运行(ExecuteJava.java:202)

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

解决方案

如)



在启动RCP之前,请确保验证插件(请参阅​​此线程)。

使用启动配置对话框,在插件选项卡中,有一个验证插件按钮,您可以单击以验证是否满足选定插件的所有依赖性。

如果存在某些错误,则可以单击 添加必需的插件来更正错误。


I have developed one eclipse RCP application which I am calling from my own Java program.
When I run my own Java program from command prompt (windows) it is perfectly working and giving the results.

But when I have integrated with the ant build script in eclipse 3.2 it is giving the following problem:

!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)

Can you please help me what could be the possible reasons for this error.

解决方案

As mentioned in this thread, you:

  • do not only have to add the platform plugins you wish to export to the list of dependent plugins of your feature,

  • but you also have to the list of included plugins

(See this project for instance)

Make sure you "Validate Plug-ins" before you launch your RCP (see this thread).
With the Launch Configuration Dialog, in the "Plug-ins" Tab, there is a "Validate Plug-ins" button that you can click to verify that all the dependency of the "selected" plug-ins are satisfied.
If there are some errors, you can click the "Add Required Plug-ins" to correct the error.

这篇关于在Eclipse RCP应用程序中找不到框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆