I haven't reconfigured the environment variables for a long time, and today we've re-provisioned them:
After installing the JDK first, configure the Java environment variables:
Java_home:
D:\Program Files (x86) \java\jdk1.8.0_91;
The value of the JAVA_HOME environment variable should be the installation path of the JDK.
Path:
;%java_home%\bin;
The general path variable system already exists, need to add later, before the semicolon, you need to add a semicolon.
Classpath
.; %java_home%\lib;%java_home%\lib\tools.jar;
In the previous to add. Represents compilation to Local.
After the Java configuration, configure the Tomcat environment variable:
Tomcat_home:
D:\Program Files (x86) \TOMCAT\APACHE-TOMCAT-9.0.0.M8;
Catalina_home:
D:\Program Files (x86) \TOMCAT\APACHE-TOMCAT-9.0.0.M8;
Catalina_home and tomcat_home two variable values.
Path:
;%catalina_home%\bin;%catalina_home%\lib
In the back, add the semicolon before you.
JAVA, Tomcat environment variable configuration