title: HBase 0.92 Standalone on Windows with Cygwin
body: <p>Does anybody know a tutorial how HBase can be run on Windows under Cygwin? </p>
  
  <p>I managed to setup everything such as the keys for auto login with SSH but Im stuck with following error message:</p>
  
  <pre><code>localhost: +======================================================================+
  localhost: |      Error: JAVA_HOME is not set and Java could not be found         |
  localhost: +----------------------------------------------------------------------+
  localhost: | Please download the latest Sun JDK from the Sun Java web site        |
  localhost: |       &gt; http://java.sun.com/javase/downloads/ &lt;                      |
  localhost: |                                                                      |
  localhost: | HBase requires Java 1.6 or later.                                    |
  localhost: | NOTE: This script will find Sun Java whether you install using the   |
  localhost: |       binary or the RPM based installer.                             |
  localhost: +======================================================================+
  </code></pre>
  
  <p>...</p>
  
  <pre><code>java.lang.NoClassDefFoundError: org/apache/zookeeper/KeeperException
          at java.lang.Class.getDeclaredMethods0(Native Method)
          at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
          at java.lang.Class.getMethod0(Unknown Source)
          at java.lang.Class.getMethod(Unknown Source)
          at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
          at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
  Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.KeeperException
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
  </code></pre>
  
  <p>I already set .bash_profile to point to:</p>
  
  <pre><code>export JAVA_HOME='/usr/lib/jre1.6.1'
  </code></pre>
  
  <p>which is symbolic link on the real jre</p>
  
  <pre><code>/usr/lib/jre1.6.1 -&gt; /cygdrive/c/Java/jre7/
  </code></pre>