[Solved] At least one of these environment variable is needed to run this program

Problem Description: the error appears in the Tomcat/bin directory, execute/ shutdown.sh ,./ startup.sh When the Tomcat server is restarted or shut down.

Cause analysis: Linux lost Java in the running memory_ Home and JRE_ Environment variable parameters of home

Solution:

Step 1: add Java environment variable parameters

Step 2:

source /etc/profile

Read More: