title: Tomcat failing to startup
body: <p>A few days ago when I turned the computer on, I tried to start up tomcat and got a surprise for the first time since I deal with software development.</p>
  
  <p>The exact error message is:</p>
  
  <pre><code>Using CATALINA_BASE:   "C:\apache-tomcat-8.0.9"
  Using CATALINA_HOME:   "C:\apache-tomcat-8.0.9"
  Using CATALINA_TMPDIR: "C:\apache-tomcat-8.0.9\temp"
  Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_45"
  Using CLASSPATH:       "C:\apache-tomcat-8.0.9\bin\bootstrap.jar;C:\apache-tomcat-8.0.9\bin\tomcat-juli.jar"
  Error occurred during initialization of VM
  Could not find agent library D:\Program in absolute path, with error: Can't find dependent libraries
  </code></pre>
  
  <p>and I cannot get the point of it, nor find any info about this in google, trying with 3 different versions of tomcat 7.0.8, 8.0.5, 8.0.9, with all is the same situation. When I saw this I thought JDK is outdated because I had a few versions of it, then I removed all JDKs and JREs from PC and installed only the last one 8u45, but without any luck. Can somebody point me in the right direction?</p>
  
  <p>The output with <code>echo</code></p>
  
  <pre><code>Using CATALINA_BASE:   "C:\Users\Denees\AppData\Roaming\NetBeans\8.0.1\apache-tomcat-8.0.15.0_base"
  Using CATALINA_HOME:   "C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.15"
  Using CATALINA_TMPDIR: "C:\Users\Denees\AppData\Roaming\NetBeans\8.0.1\apache-tomcat-8.0.15.0_base\temp"
  Using JRE_HOME:        "C:\Java\jdk1.8.0_45"
  Using CLASSPATH:       "C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.15\bin\bootstrap.jar;C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.15\bin\tomcat-juli.jar"
  "C:\Java\jdk1.8.0_45\bin\java.exe" -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=1024m -Dhttp.nonProxyHosts="localhost|127.0.0.1|Denees" -Drebel.env.ide.plugin.version=6.2.0.1 -Drebel.env.ide.version=8.0.2 -Drebel.env.ide.product=netbeans -Drebel.env.ide=netbeans -Drebel.base=C:\Users\Denees\.jrebel -Drebel.notification.url=http://localhost:57212 -agentpath:D:\Program Files\NetBeans 8.0.1\java2\griffin\lib\jrebel64.dll -Djava.util.logging.config.file="C:\Users\Denees\AppData\Roaming\NetBeans\8.0.1\apache-tomcat-8.0.15.0_base\conf\logging.properties" -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager   -Djava.endorsed.dirs="C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.15\endorsed" -classpath "C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.15\bin\bootstrap.jar;C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.15\bin\tomcat-juli.jar" -Dcatalina.base="C:\Users\Denees\AppData\Roaming\NetBeans\8.0.1\apache-tomcat-8.0.15.0_base" -Dcatalina.home="C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.15" -Djava.io.tmpdir="C:\Users\Denees\AppData\Roaming\NetBeans\8.0.1\apache-tomcat-8.0.15.0_base\temp" org.apache.catalina.startup.Bootstrap  start
  </code></pre>