Tomcat9+JDK 13报错Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program

Tomcat using https://tomcat.apache.org/download-90.cgi  Tomcat9

Before you install the JDK 13, have JAVA_HOME environment variable address (C: \ Program Files \ Java \ jdk-13.0.1) but did not find JRE_HOME environment variable address jre, should be packaged JDK use jmods 13 instead of the way in JDK8 jre (not the jre folder).

 

 

Re-download a JDK8 (requires login, account number: 2696671285 @ QQ. COM password: Oracle123 ), you can also download Windows7 corresponding to the JDK  https://jdk.java.net/java-se-ri/8 

Download the complete decompression reconfigure JAVA_HOME, JRE_HOME. Re-open the command line you can start Tomcat normal.

Tomcat and Java JDK correspondence between  http://tomcat.apache.org/whichversion.html

 

Guess you like

Origin www.cnblogs.com/itslives-com/p/Tomcat9_JDK8.html