I have installed XAMPP 7.2.10 on my Win 10 and other services like Apache and MySQL are working fine. But the Tomcat service is not starting and is throwing an error as: "Tomcat Started/Stopped with errors, return code: 1, Make sure you have Java JDK or JRE installed and the required ports are free, Check the "/xampp/tomcat/logs" folder for more information" XAMPP Tomcat error image
I have installed Java JDK in "C:\Program Files\Java" and have set the environment variables path. I have set the "JAVA_HOME" variable path as "C:\Program Files\Java\jdk-10.0.2" Also, no other program is using the required ports.
When I run the "catalina_start.bat", I get error as: "ERROR: The system was unable to find the specified registry key or value. . [XAMPP]: Cannot find current JDK installation! . [XAMPP]: Cannot set JAVA_HOME. Aborting ..."
What mistakes have I made here?