Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
533 views
in Technique[技术] by (71.8m points)

could not find framework in eclipse RCP application

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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,

Dependencies

  • but you also have to the list of included plugins

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...