title: Java Socket.IO missing dependency NoClassDefFoundError
body: <p>Hi guys im pretty new to java. Coming from .NET, C++. I am trying to get my head over with an error that is killing me since days and i am unable to fix it.</p>
  
  <p>I get this error when i try to run my .jar file</p>
  
  <pre><code>java.lang.NoClassDefFoundError: com/github/nkzawa/emitter/Emitter$Listener
  </code></pre>
  
  <p>I have no clue what else it needs, or why its not loading the engine.io-client.</p>
  
  <p>Any help appreciated.</p>
  
  <p>Edit:</p>
  
  <p>Crashing code part:</p>
  
  <pre><code>    socket = IO.socket("http://blah.com:1234");
      socket.on(Socket.EVENT_CONNECT, new Emitter.Listener()
      {
  
      // ...
  
      });
  </code></pre>
  
  <p><strong>pom.xml</strong></p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;com.github.nkzawa&lt;/groupId&gt;
          &lt;artifactId&gt;socket.io-client&lt;/artifactId&gt;
          &lt;version&gt;0.5.0&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Is there any other way to make sure that these dependencies are shipped with the final jar file so i don't have dependency issues on the end-user's machine?</p>