Now cd to bin folder and run startup.bat to start the tomcat, it shall popup a new window like below and the “Server Startup in xxxx ms” shall show.
Now change directory to the tomcat zip file extraction location like below. Now execute the java –version and you shall see an output like below To test the Java has been set properly open command prompt and execute java –version command and see it shall show output like below.(Make sure you open the command prompt in administrator mode as we are going to use it to run Tomcat in following section) Click on OK button to complete the set and click again OK button to complete the Environment variables set.Add the %JAVA_HOME%\bin to the start of the variables list like below separated by semi colon” ”.Search for the PATH variable from the list and click on Edit to edit it.Now finally we have set the PATH variable so that it will point to JRE_HOME/bin directory to make the java available in command prompt.Once JAVA_HOME is set click on New button again to add the JAVA CLASSPATH like below.In the System Variables section click on New button and add below text for JAVA_HOME.In the system properties panel click on the Environment Variables.In the properties panel click on the Advanced system settings.Click on Start > My computer and right click on it to go to Properties option.Please follow below steps to set the JAVA home environment. Now JRE is installed but we need to set the JAVA_HOME properly to let tomcat run fine.
Click on Install and click on Change to change the destination folder.Here we have choosen as D drive for the same so checked the option.