Eclipse在启动期间出现内部错误

时间:2017-12-21 18:37:13

标签: eclipse

我正面临着eclipse的问题(它的eclipse Oxygen)我无法运行一个简单的Java程序 这是在我将项目修改为Maven项目之后发生的 到目前为止我尝试了什么:
我使用(帮助>检查更新)更新了软件 删除了工作区,并创建了一个新工作区。

printScreen

!ENTRY org.eclipse.core.jobs 4 2 2017-12-21 13:15:48.670
!MESSAGE An internal error occurred during: "Launching MailProcessor".
!STACK 0
java.lang.NullPointerException
    at org.eclipse.jdt.launching.JavaRuntime.isModularJava(JavaRuntime.java:1043)
    at org.eclipse.jdt.launching.JavaRuntime.isModularConfiguration(JavaRuntime.java:1020)
    at org.eclipse.jdt.launching.JavaRuntime.computeJREEntry(JavaRuntime.java:2341)
    at org.eclipse.m2e.jdt.internal.launch.MavenRuntimeClasspathProvider.computeUnresolvedClasspath(MavenRuntimeClasspathProvider.java:93)
    at org.eclipse.jdt.internal.launching.RuntimeClasspathProvider.computeUnresolvedClasspath(RuntimeClasspathProvider.java:57)
    at org.eclipse.jdt.launching.JavaRuntime.computeUnresolvedRuntimeClasspath(JavaRuntime.java:1509)
    at org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.getBootpathExt(AbstractJavaLaunchConfigurationDelegate.java:299)
    at org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.getVMSpecificAttributesMap(AbstractJavaLaunchConfigurationDelegate.java:615)
    at org.eclipse.jdt.launching.JavaLaunchDelegate._OT$callOrig(JavaLaunchDelegate.java:71)
    at org.objectteams.Team._OT$terminalCallNext(Team.java:598)
    at org.objectteams.Team._OT$callNext(Team.java:582)
    at org.eclipse.objectteams.otdt.internal.debug.adaptor.launching.JDTLaunchingAdaptor._OT$callNext(JDTLaunchingAdaptor.java:56)
    at org.eclipse.objectteams.otdt.internal.debug.adaptor.launching.JDTLaunchingAdaptor._OT$callReplace(JDTLaunchingAdaptor.java:56)
    at org.objectteams.Team._OT$callAllBindings(Team.java:557)
    at org.eclipse.jdt.launching.JavaLaunchDelegate.callAllBindings(JavaLaunchDelegate.java)
    at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

3 个答案:

答案 0 :(得分:4)

我过去遇到过类似的问题,你可以尝试以下方法:

  1. 退出Eclipse
  2. 转到文件资源管理器中的工作区文件夹
  3. 查找.metadata文件夹并将其删除
  4. 重新打开Eclipse
  5. 希望它有效。

答案 1 :(得分:1)

对我来说,发生在run configuration中,我单击configure旁边的PHP server

通过点击new来解决它

答案 2 :(得分:0)

我遇到类似的问题,只需重新启动Eclipse即可自动运行