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.
I get this error when i try to run my .jar file
java.lang.NoClassDefFoundError: com/github/nkzawa/emitter/Emitter$Listener
I have no clue what else it needs, or why its not loading the engine.io-client.
Any help appreciated.
Edit:
Crashing code part:
socket = IO.socket("http://blah.com:1234");
socket.on(Socket.EVENT_CONNECT, new Emitter.Listener()
{
// ...
});
pom.xml
<dependency>
<groupId>com.github.nkzawa</groupId>
<artifactId>socket.io-client</artifactId>
<version>0.5.0</version>
</dependency>
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?