title: Trying to start a Firebase Java client
body: <p>I am trying to start a Java client from scratch, and have pulled in <code>firebase-client-jvm:2.2.1</code> in gradle.  I get the following in a stack trace while trying to compile anything that includes the <code>com.firebase.client.Firebase</code> class:</p>
  
  <pre><code>java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable to load class com.firebase.client.Firebase due to missing dependency android/content/Context
      at org.codehaus.groovy.control.CompilationUnit.convertUncaughtExceptionToCompilationError(CompilationUnit.java:1083)
  ...
  Caused by: java.lang.NoClassDefFoundError: Unable to load class com.firebase.client.Firebase due to missing dependency android/content/Context
  </code></pre>
  
  <p>I have no desire to include anything to do with Android, and all of the answers I find state that firebase "supports both" (i.e. <a href="https://stackoverflow.com/questions/25195190/get-firebase-to-work-with-java-not-android?lq=1">Get Firebase to work with java, not Android</a>), but I do not know how to get going.</p>
  
  <p>I cannot find examples or tutorials online showing a "simple" Java-only client, and would appreciate any "getting started" help.</p>
  
  <p>UPDATE: Not only did I have to create the <code>android.context.Context</code> class, I had to give up on writing the program in Groovy.  When I switched it back to a Java project it seemed to smooth things out considerably.</p>