Trying to get Tomcat running with XAMPP
It seems problem with setting paths. Make sure you set the paths example paths:
- CATALINA_HOME : D:\Java\Tomcat
- CLASSPATH : D:\Java\Tomcat\lib\servlet-api.jar;D:\Java\Tomcat\lib\jsp-api.jar
- JAVA_HOME : D:\Java\jdk
- path : D:\Java\jdk\bin;D:\Java\Tomcat\bin
- Also you can run Xamp Tomcat with "Administrator" privilege
If you are using skype then check and make sure skype is not using the ports 8080 or 8081. If this is the case then change skype port and restart skype
John Dawson
Updated on June 11, 2022Comments
-
John Dawson almost 2 years
I have installed XAMPP v3.2.2 and have Apache and MySQL running correctly. Tomcat will not start though and comes up with the error:
Tomcat Started/Stopped with errors, return code: 1 14:37:47 [Tomcat] Make sure you have Java JDK or JRE installed and the required ports are free 14:37:47 [Tomcat] Check the "/xampp/tomcat/logs" folder for more information
When I open the log, called
catalina.pid
it simply has the PID 8556 (although this value differs each time I try to run Tomcat).I have changed the default ports for Tomcat. I have installed both Java JDK (
C:\Program Files (x86)\Java\jdk1.8.0_65
) and Java JRE (C:\Program Files (x86)\Java\jre6
) and set the Environment Variables in Windows System Properties toJAVA_HOME
andJRE_HOME
to the previously mentioned file paths. I'm not sure what else I can try to get past this error?** Extra info about JRE **
For some reason I have two JRE instances,
C:\Program Files (x86)\Java\jre6
andC:\Program Files (x86)\Java\jre1.8.0_65
. Although I have tried setting both in the Environment Variable settings and neither works, I wondered if this may be the cause of the problem? -
John Dawson over 8 yearsWhere do I set these paths? As Environment Variables in Windows System Settings?
-
Ghayel over 8 yearsright click > my computer >properties > Advance system settings > Environment variables > System variables > new > variable name e.g. JAVA_HOME > variable value >D:\Java\jdk
-
John Dawson over 8 yearshave done, thanks. Turns out it was a permissions problem as I was using a computer at work with admin restrictions, but your help was useful too - thanks