Tomcat cannot be started due to java version change

If you change the Java version, Apache Tomcat, which was running until then, cannot be started.

Error message

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


Occurrence status and reason

After creating the tomcat environment once, change the java version, This is because the existing java has been uninstalled or the path changed.

Countermeasures

① Start the apach configuration file jdkダウングレードによるapachの起動不可問題_apach.png

② Java tag Set the Java Virtual Machine path to the correct one jdkダウングレードによるapachの起動不可問題_apachパス.png

I did the following: C:\Program Files\Java\jre7\bin\server\jvm.dll

I think you can now start it.

Recommended Posts

Tomcat cannot be started due to java version change
How to change Java version and execute in an environment where Java cannot be installed freely
[Ubuntu] What to do when MongoDB cannot be started due to a SocketException error
Java Stream cannot be reused.
Java version change on CentOS
Windows10 "rails s" cannot be started. Unable to access localhost: 3000
Whether options can be used due to different Java versions
"ClassNotFoundException" is displayed when tomcat is started in eclipse and cannot be started
Java to be involved from today
Java cannot be installed on Ubuntu 13.04
Rails tutorial When rails new cannot be done due to different versions
What to do when CentOS cannot be started with VirtualBox on Catalina
Eclipse screen layout change method (Java version)
Change List <Optional <T >> to Optional <List <T >> in Java
How to install the legacy version [Java]
Rails server cannot be started in Cloud9
Things to be aware of when writing Java
CORBA seems to be removed in Java SE 11. .. ..
[Java] Scenes that cannot be reassigned (substantially final)
There seems to be no else-if in java
Getting started with Kotlin to send to Java developers
[Java] char type can be cast to int type
Minecraft BE server development from PHP to Java
[Solution] Java cannot be installed on Windows 10 + ATOK 2017
Why Java String typeclass comparison (==) cannot be used
Kotlin's reified function cannot be called from java.