2017-09-13 177 views
0

我觀察到以下問題。 在通過標準功能在Eclipse IDE中創建Eclipse RCP應用程序的情況下,分佈了問題 開始在情況下,由它失敗無法啓動由maven + tycho創建的Eclipse RCP應用程序

!SESSION 2017-09-13 13:32:10.129 ----------------------------------------------- 
eclipse.buildId=unknown 
java.version=1.8.0_131 
java.vendor=Oracle Corporation 
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US 
Command-line arguments: -os win32 -ws win32 -arch x86_64 

!ENTRY org.eclipse.osgi 4 0 2017-09-13 13:32:12.185 
!MESSAGE Application error 
!STACK 1 
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini). 
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:78) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
    at java.lang.reflect.Method.invoke(Unknown Source) 
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673) 
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610) 
    at org.eclipse.equinox.launcher.Main.run(Main.java:1519) 
    at org.eclipse.equinox.launcher.Main.main(Main.java:1492) 

我提供了一些調查,發現,配置錯誤行家腳本創建相同的應用程序.ini文件未正確創建。有些根插件沒有標記開始標記。 這些是: - org.eclipse.core.runtime_3.12.0.v20160606-1342.jar - org.eclipse.equinox.common_3.8.0.v20160509-1230.jar - org.eclipse.equinox.ds_1.4.400。 v20160226-2036.jar - org.eclipse.equinox.event_1.3.200.v20160324-1850.jar - org.eclipse.update.configurator_3.3.400.v20160506-0750.jar

可否請你建議我可能這個問題的原因? 有沒有辦法正確配置生成config.ini?

在此先感謝亞歷克斯

+0

以下部分已被添加到產品定義<配置> <插件ID = 「org.eclipse.core.runtime」 AUTOSTART = 「真」 STARTLEVEL = 「0」/> Alexander

+0

所以問題已解決。 – Alexander

+0

Hello Alexander, 很棒,你自己解決了你的問題。請通過自己回答問題(https://stackoverflow.com/help/self-answer)分享解決方案,而不是發表評論。通過這樣做,您還可以從標題中刪除「已解決」。因爲這不是在Stack Exchange網站上標記已解決問題的正確方法。 – gillesB

回答

0

我發現這個問題的解決方案。這就是: 以下部分已被添加到產品定義

<configurations> 
    <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" /> 
    <plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" /> 
    <plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="2" /> 
    <plugin id="org.eclipse.equinox.event" autoStart="true" startLevel="2" /> 
    <plugin id="org.eclipse.equinox.simpleconfigurator" autoStart="true" startLevel="1" /> 
</configurations> 

一般來講XML的這部分定義了插件應同時您的應用程序正在啓動時自動啓動。產品定義是用於描述目標eclipse應用程序的文件。例如:

https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Ffile_wizards%2Fnew_product_config.htm

相關問題