The error you see is probably because you do not have the correct JAVA_HOME path. Do you see something like C:\{directories to jre}\..\lib\tools.jar ?
You can trigger an eclipse using the built-in JDK by modifying eclipse.ini and adding something like
-vm C:\{directories to JDK}\bin\javaw.exe
What I found out is that eclipse will use your jre system by default to run eclipse. You probably saw a message when starting eclipse, similar to "Eclipse works under JRE, and m2eclipse requires JDK, some plugins will not work"
If you go into (eclipse) Help -> Installation Details and look for -vm, you will probably see that this indicates where there is no path structure that it expects.
Note. For some reason, when I ran into this problem, java.home in maven was appreciated since eclipse started. So when he tries to pull tools.jar from what he sees as java.home, it may not be what you are actually setting as JAVA_HOME as an env / system variable.
John Vint Apr 22 2018-11-11T00: 00Z
source share