title: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/MasterNotRunningException
body: <p>I created by own HBase java client code, but I am having a really difficult time compiling it and getting it to run. I am compiling from the command line, and I havent been able to find any instructions how to do this, or what jars I need to have on my classpath.</p>
  
  <p>Below is the classpath I'm using:</p>
  
  <pre><code>$HADOOP_HOME/hadoop/hadoop-0.20.2/hadoop-0.20.2-core.jar:
  $HADOOP_HOME/hbase/hbase-0.90.0/hbase-0.90.0.jar:
  $HADOOP_HOME/hbase/lib/zookeeper-3.3.2.jar
  </code></pre>
  
  <p>When I run the javac command, it compiles fine. However, when I run my java code, I get the below error: </p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/MasterNotRunningException
  Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.MasterNotRunningException
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
  Could not find the main class: HBaseConnection.  Program will exit.  
  </code></pre>
  
  <p>What am I missing?</p>
  
  <p>Thanks!</p>