我正在尝试使用Windows上的Eclipse 4.3.0创建Eclipse RCP应用程序。
对于参考文献,我参考了Lars Vogel的文章“ Eclipse产品和部署 - 教程”http://www.vogella.com/tutorials/EclipseProductDeployment/article.html 本教程不提供任何代码,但我引用了它并遵循以确保错过了某些内容。但事实确实如此。 出了什么问题?
我使用多页面编辑器向导创建插件项目。
我可以从plugin.xml
启动,并在Eclipse IDE运行时中看到新的插件功能。
然后按照教程我创建.product文件,
和生成方法的Application
类(start
和stop
)
public class Application implements IApplication {
但是当使用.product Overview中的“启动Eclipse应用程序”时,我得到了
!SESSION Fri Jan 10 13:22:34 CST 2014 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2014-01-10 13:22:34.195
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:633)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
看起来类似于旧的Eclipse问题java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter 这没有帮助。
使用“Eclipse Product export wizard”时,我在eclipse
文件夹中获取文件。但是在启动我的todo.exe时,有Dialog
Java was started but returned exit code=13
我在configuration
文件夹
!SESSION Fri Jan 10 13:46:19 CST 2014 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2014-01-10 13:46:19.008
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.RuntimeException: Could not find framework
at org.eclipse.equinox.launcher.Main.getBootPath(Main.java:992)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:571)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
出了什么问题?
我还看了一下故事般的问题How to make simplistic RCP application really standalone?(也没有答案), 但它没有给我任何线索。
最后,当提出这个问题时,StackOverflow建议我一些类似的(会再看一遍)
答案 0 :(得分:3)
查看RCP项目设置的最简单方法可能是使用New > Plug-in Project
向导提供的示例之一。
在向导的第二页上,为This plug-in will make contributions to the UI
选择Yes
和Would you like to create a 3.x rich client application
。
使用这些设置,向导的第三页应提供三个RCP示例。
注意:这会创建您提到的教程所涵盖的旧样式3.x RCP,还有新的e4
样式RCP。 e4 RCP对可以使用的现有Eclipse代码有限制,但具有其他优点(详见here)。
答案 1 :(得分:0)
这可能会有所帮助:
转到运行产品配置。转到插件标签,然后点击“添加所需的插件”。然后运行你的产品。
点击“运行” - >运行配置。见下文