Trying to get Tomcat running with XAMPP

18,997

It seems problem with setting paths. Make sure you set the paths example paths:

  1. CATALINA_HOME : D:\Java\Tomcat
  2. CLASSPATH : D:\Java\Tomcat\lib\servlet-api.jar;D:\Java\Tomcat\lib\jsp-api.jar
  3. JAVA_HOME : D:\Java\jdk
  4. path : D:\Java\jdk\bin;D:\Java\Tomcat\bin
  5. 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

Share:
18,997
John Dawson
Author by

John Dawson

Updated on June 11, 2022

Comments

  • John Dawson
    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 to JAVA_HOME and JRE_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 and C:\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
    John Dawson over 8 years
    Where do I set these paths? As Environment Variables in Windows System Settings?
  • Ghayel
    Ghayel over 8 years
    right 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
    John Dawson over 8 years
    have 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