openHab2 not starting - Windows 7

Hello I am trying to launch openHab2 on my Windows 7 machine and I got the following error:

C:\openHAB2>start.bat
Launching the openHAB runtime…
-Djava.endorsed.dirs=C:\Java\jdk-10.0.1\jre\lib\endorsed;C:\Java\jdk-10.0.1\lib
endorsed;C:\openHAB2\runtime\bin…\lib\endorsed is not supported. Endorsed stan
dards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

C:\openHAB2>
C:\openHAB2>echo %JAVA_HOME%
C:\Java\jdk-10.0.1

openHab version is: 2.2.0

Any ider what’s going wrong?

fall back to Java 8 and try again (you installed JDK 10.0.1)

https://docs.openhab.org/installation/index.html#prerequisites

I had the same issue, with Java 8. I updated to JDK 10 afterwards.

OH will not run on JDK 10. You must use Java 8.