I ran into this error while setting up my Tomcat and Java environmental path:
Neither the JAVA_HOME nor the JRE_HOME environmental variables is defi
You really do not need to add JRE_HOME to the system variables. Tomcat looks for JAVA_HOME or JRE_HOME to get itself start. This is because tomcat require some java library to get itself started. Tomcat will provide additional debugging functionality if Jdk is provided instead of Jre. Additional details here
Adding {JAVA_HOME_DIR}/bin to your path would enable to access java from anywhere.