Search code examples
javaeclipsejuniteclipse-2020-06

Eclipse - JUnit - An internal error occurred during: "Launching MyMavenModule". NullPointerException


I recently upgraded to Eclipse 2020-06. After the upgrade, I'm now unable to run Junit tests in Eclipse while they run smoothly in Maven.

Here is a screenshot of the error : enter image description here

I tried to delete the .metadata folder (I made a backup before), start a fresh copy of eclipse and import my project in it and event start another fresh copy of eclipse and create a simple JUnit test in it.

All these attempts result in the same error.

What am I doing wrong?

EDIT: enter image description here


Solution

  • I wasn't able to fix the problem. I tried to install Java Development Tool but the installer failed with an OutOfMemoryException.

    So I re-download Eclipse 2020-06 manually, I re-install all my plugins and re-import my projects.

    My guess is the ooomph installer messed around somehow during the upgrade from Eclipse 2020-03 to Eclipse 2020-06.

    I lost nearly a day to fix this !