title: Setting up Apache Tomcat in Cygwin
body: <p>I'm trying to set up Apache Tomcat on Cygwin and when I run the configtest.sh script, I get this error.  My environment variables all appear to be correct, but when java complains about not finding classes, it tries looking in some weird paths like it's starting from the current directory:</p>
  
  <pre><code>Using CATALINA_BASE:   C:\cygwin\usr\local\apache-tomcat-7.0.26
  Using CATALINA_HOME:   C:\cygwin\usr\local\apache-tomcat-7.0.26
  Using CATALINA_TMPDIR: C:\cygwin\usr\local\apache-tomcat-7.0.26\temp
  Using JRE_HOME:        C:\Program Files (x86)\Java\jre7
  Using CLASSPATH:       C:\cygwin\usr\local\apache-tomcat-7.0.26\bin\bootstrap.jar;C:\cygwin\usr\local\apache-tomcat-7.0.26\bin\tomcat-juli.jar
  Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
     &lt;&lt;No stacktrace available&gt;&gt;
  Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstrap not found in java.lang.ClassLoader$1{urls=[
  file:/usr/local/apache-tomcat-7.0.26/bin/C,
  file:/usr/local/apache-tomcat-7.0.26/bin/\cygwin\usr\local\apache-tomcat-7.0.26\bin\bootstrap.jar;C,
  file:/usr/local/apache-tomcat-7.0.26/bin/\cygwin\usr\local\apache-tomcat-7.0.26\bin\tomcat-juli.jar], parent=null}
     at java.net.URLClassLoader.findClass(URLClassLoader.java:531)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:341)
     at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:293)
  Configuration error detected!
  </code></pre>
  
  <p>Can anyone tell me what I'm doing wrong?</p>