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
Try this...
For Java,
In the User variables, add PATH value is C:\Program Files\Java\jdk1.8.0_25\bin;
For Tomcat
In the System variables, add JAVA_HOME value is C:\Program Files\Java\jdk1.8.0_25
Now classpath has been set to your machine. You can access java from anywhere in your machine.
After Done this, Go to Command Prompt and go to ApacheTomcat*x.x and move to bin folder,,
Start the Server
startup.bat
For check Tomcat running status, Go to your browser, and Paste the URL,
http://localhost:8080/
Stop the Server
shutdown.bat