2016-08-29 2 views
0

Ich habe eine Eclipse E4-Anwendung. Ich möchte eine lauffähige EXE-Datei haben. Der Export der EXE-Datei hat keine Fehler. Aber wenn ich die exportierte Anwendung läuft das Programm nicht gestartet und diese Fehler geben:Eclipse e4 Programm wird nicht gestartet

!SESSION 2016-08-29 08:55:19.759 ----------------------------------------------- 
eclipse.buildId=unknown 
java.version=1.8.0_102 
java.vendor=Oracle Corporation 
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US 
Framework arguments: -clearPersistedState 
Command-line arguments: -os win32 -ws win32 -arch x86_64 -clearPersistedState 

!ENTRY CR-IT_client 4 0 2016-08-29 08:55:20.930 
!MESSAGE FrameworkEvent ERROR 
!STACK 0 
org.osgi.framework.BundleException: Could not resolve module: CR-IT_client [26] 
    Unresolved requirement: Require-Bundle: org.eclipse.equinox.launcher; bundle-version="1.3.100" 

    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:1561) 
    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.equinox.app 0 0 2016-08-29 08:55:21.309 
!MESSAGE Product CR-IT_client.product could not be found. 

!ENTRY org.eclipse.equinox.launcher.win32.win32.x86_64 2 0 2016-08-29 08:55:21.653 
!MESSAGE Could not resolve module: org.eclipse.equinox.launcher.win32.win32.x86_64 [40] 
    Unresolved requirement: Fragment-Host: org.eclipse.equinox.launcher; bundle-version="[1.0.0,1.4.0)" 


!ENTRY CR-IT_client 2 0 2016-08-29 08:55:21.653 
!MESSAGE Could not resolve module: CR-IT_client [26] 
    Unresolved requirement: Require-Bundle: org.eclipse.equinox.launcher; bundle-version="1.3.100" 


!ENTRY org.eclipse.osgi 4 0 2016-08-29 08:55:21.654 
!MESSAGE Application error 
!STACK 1 
java.lang.NullPointerException 
    at org.eclipse.emf.common.util.URI$URIPool$PlatformAccessUnit.setValue(URI.java:865) 
    at org.eclipse.emf.common.util.URI$URIPool.intern(URI.java:1949) 
    at org.eclipse.emf.common.util.URI.createPlatformPluginURI(URI.java:2718) 
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.determineApplicationModelURI(E4Application.java:426) 
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:350) 
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:254) 
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:145) 
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) 
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) 
    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(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:669) 
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608) 
    at org.eclipse.equinox.launcher.Main.run(Main.java:1515) 

In Eclipse-IDE kann es laufen, aber wenn ich es exportieren bekam ich einen Fehler. Jemand, der mir dabei helfen kann?

Antwort

0

Das Plug-In org.eclipse.equinox.launcher fehlt im Build (oder möglicherweise ist es vorhanden, hat aber die falsche Version).

Die Konfiguration der im RCP enthaltenen Plug-ins unterscheidet sich von der Konfiguration der Plug-Ins, die beim Testen des RCP in Eclipse verwendet werden.

Wenn Sie eine '.product'-Datei für den RCP verwenden, gehen Sie auf die Registerkarte' Inhalt 'im .product-Dateieditor und klicken Sie auf die Schaltfläche' Erforderlich hinzufügen ', um alle erforderlichen Plugins zum Produkt hinzuzufügen. Bei einem normalen RCP sollte es in der Inhaltsliste etwa 100 Plugins geben. Dann erstellen Sie das RCP neu.

Ich gehe davon aus, dass Sie eine "Plug-Ins-basierte" Produktkonfiguration verwenden.

Verwandte Themen