title: can't initialize tomcat in Xampp
body: <p>I'm trying to use xampp for a course but i can't make tomcat work correctly, the error i get is:</p>
  
  <p>"Tomcat Started/Stopped with errors, return code: 1
  Make sure you have Java JDK or JRE installed and the required ports are free
  Check the "/xampp/tomcat/logs" folder for more information"</p>
  
  <p>I've seeing many others with this problem but none of the advices they get helped me get rid of it.</p>
  
  <p>i've already settled the enviroment variables like this:</p>
  
  <ul>
  <li>CATALINA_HOME: C:\xampp\tomcat</li>
  <li>CLASSPATH: C:\xampp\tomcat\lib\servlet-api.jar;C\xampp\tomcat\lib\jsp-api.jar</li>
  <li>JAVA_HOME: C:\Program Files\Java\jdk-9</li>
  <li>JRE_HOME: C:\Program Files\Java\jdk-9</li>
  <li>path: C:\Program Files\Java\jdk-9\bin;C:\xampp\Tomcat\bin;C:\Program Files\Java\jre-9\bin</li>
  </ul>
  
  <p>I've already set the port to 7070 (not sure if this is valid)</p>
  
  <p>when i run CATALINA_START from cmd i got this:</p>
  
  <pre><code>C:\xampp\tomcat&gt;catalina_start
  
  [XAMPP]: Searching JDK HOME with reg query ...
  'reg' is not recognized as an internal or external command, operable program or batch file.
  'reg' is not recognized as an internal or external command, operable program or batch file.
  
  [XAMPP]: Seems fine!
  [XAMPP]: Set JAVA_HOME : C:\Program Files\Java\jdk-9
  [XAMPP]: Set CATALINA_HOME : C:\xampp\tomcat
  
  Using CATALINA_BASE:   "C:\xampp\tomcat"
  Using CATALINA_HOME:   "C:\xampp\tomcat"
  Using CATALINA_TMPDIR: "C:\xampp\tomcat\temp"
  Using JRE_HOME:        "C:\Program Files\Java\jre-9"
  Using CLASSPATH:       "C:\xampp\tomcat\bin\bootstrap.jar;C:\xampp\tomcat\bin\tomcat-juli.jar"
  -Djava.endorsed.dirs=C:\xampp\tomcat\endorsed is not supported. Endorsed standards and standalone APIs
  in modular form will be supported via the concept of upgradeable modules.
  Error: Could not create the Java Virtual Machine.
  Error: A fatal exception has occurred. Program will exit.
  </code></pre>
  
  <p>Apache and MySQL works just fine, but tomcat is giving headaches Does anyone know what can be wrong?</p>