Failed creating java C:\Program Files\Java\jre1.8.0_101\bin\server\jvm.dll [error] [ 2592] The system cannot find the path specified.

Failed creating java C:\Program Files\Java\jre1.8.0_101\bin\server\jvm.dll [error] [ 2592] The system cannot find the path specified.


Issue: 

Unable to start tomcat service


Error in the tomcat-logs:

[info] [ 2592] Starting service...
[error] [ 2592] Failed creating java C:\Program Files\Java\jre1.8.0_111\bin\server\jvm.dll
[error] [ 2592] The system cannot find the path specified.
[error] [ 2592] ServiceStart returned 1
[error] [ 2592] The system cannot find the path specified.
[info] [ 3120] Run service finished.


Steps To Reproduce:

- Double click on the tomcat9w.exe file from apache-tomcat/bin location
- Click on the JAVA tab and Check the Use Default option for the Java Virtual Machine option.
- Now start the tomcat service

Solution:

- Check the java version installed on the machine. Perform java -version on cmd to check
- Check the JAVA_HOME and JRE_HOME environment variable are pointing to the correct path or not
- Double click on the tomcat9w.exe file from apache-tomcat/bin location
- Click on the JAVA tab and Check the Use Default option for the Java Virtual Machine option.
- Now start the tomcat service


      Links to better reach 

            Bot Store

             EPD