Tomcat specify a particular java
Producer: dedication
After installing Tomcat, go to the bin directory, find setclasspath.bat or setclasspath.sh file, add the following before the file
Windows: set JAVA_HOME=D:\java\jdk1.7 set JRE_HOME=D:\java\jdk1.7\jre Linux: JAVA_HOME=/home/jdk1.8/ JRE_HOME=/home/jdk1.8/jre
Note: The specific path based on actual condition java