2016-09-18 3 views
0

Ich habe Eclipse RCP-Projekt, ich möchte es exportieren und ausführbare machen. Ich mache Export an Eclipse product über Produktdatei. Als Ergebnis bekomme ich Katalog mit Plugins, anderen Dateien und MyApp.exe, aber wenn ich exe-Datei ausführen, bekomme ich im Protokoll eine solche Nachricht. Vielleicht kann mir jemand sagen, was der Grund für diese Ausnahme sein könnte?Eclipse rcp exportieren Produkt wirft NullPointerException

!ENTRY org.eclipse.equinox.app 0 0 2016-09-18 15:05:10.837 
!MESSAGE Product myapp.product could not be found. 

!ENTRY org.eclipse.osgi 4 0 2016-09-18 14:06:41.616 
    !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:407) 
     at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:348) 
     at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:252) 
     at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:148) 
     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:388) 
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243) 
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
     at java.lang.reflect.Method.invoke(Method.java:498) 
     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) 
+0

'Produkt myapp.product konnte nicht gefunden werden' ist hier die Kernaussage - Ihr exportierendes Produkt scheint Ihre Produktdefinition nicht zu enthalten (vielleicht fehlt das Plugin). Der Absturz wird verursacht, weil das Produkt nicht gefunden werden konnte. –

+0

hallo, danke für die Antwort, welche Art von Plugin fehlt? – Bublik

+0

Nun, wahrscheinlich das Plugin, wo Sie Ihr Produkt 'myapp.product' in der plugin.xml definieren. Schauen Sie sich Ihre 'xxx.product' Datei an und vergewissern Sie sich, dass alle Ihre Plugins aufgelistet sind sowie alle erforderlichen Eclipse RCP Plugins. –

Antwort

3

Product myapp.product could not be found ist die Kernaussage hier - Ihre exportierte Produkt scheint nicht Ihre Produktdefinition enthalten (vielleicht das Plugin fehlt). Der Absturz wird verursacht, weil das Produkt nicht gefunden werden konnte.

Stellen Sie sicher, dass Ihre xxx.product Datei alle Ihre Plugins und alle Eclipse RCP Plugins enthält, von denen sie abhängen (Sie können die Schaltfläche 'Erforderlich hinzufügen' verwenden, um dies zu beheben).

Verwandte Themen