開發基於eclipse插件的應用程序。在產品中,當我推送「啓動Eclipse應用程序」時,應用程序正常運行。 當我導出應用程序並嘗試啓動它時,我得到org.eclipse.core.runtime未解析。 是的,在依賴關係中我做了一個「添加所需的插件」。 爲了讓工作產品能夠出口,我該怎麼做?eclipse導出產品無法解析org.eclipse.core.runtime而「啓動應用程序」確實有效
這裏是當前開發樹: https://github.com/magwas/zenta/tree/export_bugreport 您可以在org.rulez.magwas.zenta.editor.build/zenta.product產品的文件,並在TMP的出口產品/ Zenta.eclipse
我在起步階段配置中的一個條目: org.eclipse.core.runtime自動啓動= 「真」 STARTLEVEL = 「0」
這裏是發射失敗的日誌:
!SESSION 2016-01-23 10:17:04.939 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_91
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.core.runtime 4 0 2016-01-23 10:17:05.560
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.core.runtime [1]
Unresolved requirement: Require-Bundle: javax.annotation; bundle-version="1.1.0"; visibility:="reexport"; resolution:="optional"
Unresolved requirement: Require-Bundle: javax.inject; bundle-version="1.0.0"; visibility:="reexport"; resolution:="optional"
Unresolved requirement: Require-Bundle: org.eclipse.equinox.common; bundle-version="[3.6.100,4.0.0)"; visibility:="reexport"
at org.eclipse.osgi.container.Module.start(Module.java:434)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
!ENTRY org.eclipse.osgi 4 0 2016-01-23 10:17:05.562
!MESSAGE Bundle [email protected]:file:plugins/org.eclipse.core.runtime_3.10.0.v20140318-2214.jar was not resolved.
!ENTRY org.eclipse.core.runtime 2 0 2016-01-23 10:17:05.565
!MESSAGE Could not resolve module: org.eclipse.core.runtime [1]
Unresolved requirement: Require-Bundle: javax.annotation; bundle-version="1.1.0"; visibility:="reexport"; resolution:="optional"
Unresolved requirement: Require-Bundle: javax.inject; bundle-version="1.0.0"; visibility:="reexport"; resolution:="optional"
Unresolved requirement: Require-Bundle: org.eclipse.equinox.common; bundle-version="[3.6.100,4.0.0)"; visibility:="reexport"
!ENTRY org.eclipse.osgi 4 0 2016-01-23 10:17:05.566
!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:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
您如何輸出產品?你在使用'.product'文件嗎?您是否在'.product'文件中列出了所有必需的插件?它實際上是無法找到的'org.eclipse.equinox.common'。 –
我正在使用產品文件導出產品。我正在使用「添加所需的插件」來確保所有插件都在那裏。 我在導出的產品中有org.eclipse.equinox.common: $ ls tmp/Zenta.eclipse/Zenta/plugins/org.eclipse.equinox.common_3.6.200.v20130402-1505.jar -l -rw- rw-r-- 1 mag mag 106701 Jan 23 10:16 tmp/Zenta.eclipse/Zenta/plugins/org.eclipse.equinox.common_3.6.200.v20130402-1505.jar 而且它甚至在需要的版本範圍內。 –
我不確定您的開始級別輸入是否正確(配置選項卡,開始級別)。你通常不需要任何東西,所以嘗試刪除它。 –