Mac JDK9 installation and configuration environment, and install Tomcat wrong solution to the problem

Installation and configuration MAC JDK9 environment and Tomcat installation error problem solving

Appears in the terminal:

Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
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

 

Encountered this problem in the installation of Tomcat, then we have the following to resolve it.

The first step: to enter the Oracle JDK's official website to download
http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html
Precautions: need to click Accept License Agreement, and then select the right side macOS the .dmg file to download

 

 

Step two: the downloaded file, copy the folder to the Java environment, easy management.

 

 

Double-click the dmg file jdk:

 

 

Double-click operation. Click Continue:

 

 

After continued, there is a "Install" button, click the button, you need to enter a password:

 

 

This installation was successful friends.
Then we installed the following Tomcat, Tomcat on to the next step of it!

 

 

https://blog.csdn.net/janny_flower/article/details/78268215

Guess you like

Origin www.cnblogs.com/DLuob/p/11967949.html