If you change the Java version, Apache Tomcat, which was running until then, cannot be started.
C:\Program Files\Apache Software Foundation\Tomcat 7.0\logs commons-daemon.log
When I checked the above log file, I was getting a message like this.
17-12-01 09:42:35] [info] [ 6772] Commons Daemon procrun (1.0.15.0 64-bit) started [2017-12-01 09:42:35] [info] [ 6772] Running 'Tomcat7' Service... [2017-12-01 09:42:35] [info] [ 2728] Starting service... [2017-12-01 09:42:35] [error] [ 2728] Failed creating java C:\Program Files\Java\jre1.8.0_111\bin\server\jvm.dll [2017-12-01 09:42:35] [error] [2728] The specified path cannot be found. [2017-12-01 09:42:35] [error] [ 2728] ServiceStart returned 1 [2017-12-01 09:42:35] [error] [2728] The specified path cannot be found. [2017-12-01 09:42:35] [info] [ 6772] Run service finished. [2017-12-01 09:42:35] [info] [ 6772] Commons Daemon procrun finished
After creating the tomcat environment once, change the java version, This is because the existing java has been uninstalled or the path changed.
① Start the apach configuration file
② Java tag Set the Java Virtual Machine path to the correct one
I did the following: C:\Program Files\Java\jre7\bin\server\jvm.dll
I think you can now start it.
Recommended Posts