2012-02-15 31 views
1

我测试了Eclipse E4框架,我尝试导出一个简单的Hello World程序的程序编译,并显示在Eclipse中的窗口,一旦我出口并运行它产生与错误报告无法日志的exe找到包的Eclipse e4的问题,将其导出

eclipse.buildId=unknown 
java.version=1.6.0_26 
java.vendor=Sun Microsystems Inc. 
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.equinox.app 0 0 2012-02-15 23:24:46.725 
!MESSAGE Product com.test.test.test.product could not be found. 

!ENTRY org.eclipse.osgi 4 0 2012-02-15 23:24:46.738 
!MESSAGE Application error 
!STACK 1 
java.lang.NullPointerException 
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:126) 
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) 
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) 
    at org.eclipse.equinox.launcher.Main.run(Main.java:1410) 
    at org.eclipse.equinox.launcher.Main.main(Main.java:1386) 

回答

0

日志输出"!MESSAGE Product com.test.test.test.product could not be found."可能是缺少管束结果。

确保所需插件和片段的列表已完成。您可以通过双击Eclipse插件的“产品”文件,然后导航到标签“依赖”打开列表。有一个简单的按钮“添加所需的插件”,可用于自动添加所有需要的插件。