有谁知道如何解决这个问题?
我正在与GEF一起做一个插件项目。 当我选择Run As> Run Configurations ...> Eclipse Application> New launch configuration时,我创建了一个新的Eclipse Application。然后在Main选项卡中我放置了这个位置:$ {workspace_loc} /.metadata / .plugins / org.eclipse.pde.core / runtime-New_configuration。 在我的xml文件中,我描述了我的应用程序:
<extension
id="application"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="tutogef.Application">
</run>
</application>
当我执行插件时,它显示以下消息:
!SESSION 2016-12-09 16:26:41.951 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_111
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Framework arguments: -application TutoGEF.application
Command-line arguments: -application TutoGEF.application -data /home/jacque/workspace/.metadata/.plugins/org.eclipse.pde.core/runtime-New_configuration -dev file:/home/jacque/workspace/.metadata/.plugins/org.eclipse.pde.core/New_configuration/dev.properties -os linux -ws gtk -arch x86_64 -consoleLog
!ENTRY org.eclipse.core.resources 2 10035 2016-12-09 16:26:50.800
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://1035.fwk655381473:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://1035.fwk655381473:2/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
!ENTRY org.eclipse.ui.workbench 4 2 2016-12-09 16:26:56.608
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.ExceptionInInitializerError
at org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:189)
at org.eclipse.oomph.setup.ui.EarlyStartup.earlyStartup(EarlyStartup.java:22)
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:77)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:53)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2829)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.NullPointerException
at org.eclipse.oomph.setup.util.SetupUtil.<clinit>(SetupUtil.java:35)
... 7 more
!ENTRY org.eclipse.ui 4 0 2016-12-09 16:26:56.613
!MESSAGE Unable to execute early startup code for the org.eclipse.ui.IStartup extension contributed by the 'org.eclipse.oomph.setup.ui' plug-in.
!STACK 0
java.lang.ExceptionInInitializerError
at org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:189)
at org.eclipse.oomph.setup.ui.EarlyStartup.earlyStartup(EarlyStartup.java:22)
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:77)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:53)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2829)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.NullPointerException
at org.eclipse.oomph.setup.util.SetupUtil.<clinit>(SetupUtil.java:35)
... 7 more
我不知道我在做错什么地方......
答案 0 :(得分:0)