(1) startup.bat found in the unzipped tomcat bin folder, right click -> Edit. Add the following two lines in the file header:
SET JAVA_HOME = D: \ Java \ jdk1.8.0_10 (java jdk directory)
the SET TOMCAT_HOME = C: \ the Apache-tomcat-7.0.47 \ bin (after extracting the file directory tomcat)
(2) the same. Shutdown.bat found in the unzipped tomcat bin folder, right click -> Edit. Add the following two lines in the file header:
SET JAVA_HOME = D: \ Java \ jdk1.8.0_10 (java jdk directory)
the SET TOMCAT_HOME = C: \ the Apache-tomcat-7.0.47 \ bin (after extracting the file directory tomcat)