簡體   English   中英

使用Lars Vogel“Eclipse產品和部署 - 教程”創建Eclipse RCP應用程序

[英]Creating Eclipse RCP application with Lars Vogel “Eclipse Products and Deployment - Tutorial”

我試圖在Windows上使用Eclipse 4.3.0創建Eclipse RCP應用程序。

有關參考資料,我參加了Lars Vogel文章“ Eclipse產品和部署 - 教程http://www.vogella.com/tutorials/EclipseProductDeployment/article.html本教程不提供任何代碼,但我引用了它並遵循以確保錯過了什么。 但事實確實如此。 什么地方出了錯?

我使用多頁面編輯器向導創建插件項目。

我可以從plugin.xml啟動並在Eclipse IDE運行時中查看新的插件功能。

然后按照教程我創建.product文件和帶有生成方法的Application類( startstop

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)

什么地方出了錯?

我還看了一下故事般的問題如何讓簡單的RCP應用程序真正獨立? (這也沒有答案),但它沒有給我任何線索。

最后在談到這個問題時,StackOverflow建議我一些類似的(會再看)

查看RCP項目設置的最簡單方法可能是使用New > Plug-in Project向導提供的示例之一。

在向導的第二頁中選擇This plug-in will make contributions to the UI ,也YesWould you like to create a 3.x rich client application

使用這些設置,向導的第三頁應提供三個RCP示例。

注意:這會創建您提到的教程所涵蓋的舊樣式3.x RCP,還有新的e4樣式RCP。 e4 RCP對可以使用的現有Eclipse代碼有限制,但具有其他優點(詳見此處 )。

這可能有所幫助:

轉到運行產品配置。 轉到插件選項卡,然后單擊“添加所需的插件” 然后運行您的產品。

編輯:

單擊“運行” - >“運行配置”。 見下文

在此輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM