Eclipse 中的错误 运行 RCP 项目
Error Running RCP Project in Eclipse
我继承了一个现有的 RCP 项目,我对这类项目的工作方式完全陌生。
我正在为 Java 开发人员 运行ning Eclipse IDE(版本:Oxygen.3 Release (4.7.3))。
当我尝试将项目 运行 作为 Eclipse 应用程序时,出现以下错误:
java.lang.NullPointerException
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.<init>(ModelServiceImpl.java:122)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:511)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:204)
at org.eclipse.ui.internal.Workbench.lambda(Workbench.java:614)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
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(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:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
我看到一些针对这个问题的解决方案说 org.eclipse.equinox.ds
和 org.eclipse.equinox.event
需要包含在插件依赖项中,但这并没有解决我的问题。
为了解决这个问题,我做了以下工作:
- 删除我的运行配置:运行>运行配置,然后select配置,按大红色
x
按钮,关闭
- 创建产品配置:文件>新建>其他,然后插件开发>产品配置,下一步,select项目,提供产品配置文件名,完成
- 产品配置文件应该会自动打开(如果没有,打开它),然后,select 目录选项卡,并添加
org.eclipse.equinox.event
插件
- Select 配置选项卡,将
org.eclipse.equinox.event
添加到开始级别并将 Auto-Start
设置为 true
我继承了一个现有的 RCP 项目,我对这类项目的工作方式完全陌生。
我正在为 Java 开发人员 运行ning Eclipse IDE(版本:Oxygen.3 Release (4.7.3))。
当我尝试将项目 运行 作为 Eclipse 应用程序时,出现以下错误:
java.lang.NullPointerException
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.<init>(ModelServiceImpl.java:122)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:511)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:204)
at org.eclipse.ui.internal.Workbench.lambda(Workbench.java:614)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
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(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:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
我看到一些针对这个问题的解决方案说 org.eclipse.equinox.ds
和 org.eclipse.equinox.event
需要包含在插件依赖项中,但这并没有解决我的问题。
为了解决这个问题,我做了以下工作:
- 删除我的运行配置:运行>运行配置,然后select配置,按大红色
x
按钮,关闭 - 创建产品配置:文件>新建>其他,然后插件开发>产品配置,下一步,select项目,提供产品配置文件名,完成
- 产品配置文件应该会自动打开(如果没有,打开它),然后,select 目录选项卡,并添加
org.eclipse.equinox.event
插件 - Select 配置选项卡,将
org.eclipse.equinox.event
添加到开始级别并将Auto-Start
设置为true