New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Java Project - imported JAR #38
Comments
You need |
Thank you :) working very well now. http://mvnrepository.com/artifact/org.java-websocket/Java-WebSocket/1.3.0 |
For the record, you'll also need the jar created from: https://github.com/socketio/engine.io-client-java
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I imported jar files (socketio and engineio) from Maven to eclipse project lib but it gives no class def found error. i checked both of them on build path / export.
http://mvnrepository.com/artifact/com.github.nkzawa/socket.io-client/0.1.3
http://mvnrepository.com/artifact/com.github.nkzawa/engine.io-client/0.2.3
Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONException
at com.github.nkzawa.socketio.client.Manager.(Manager.java:143)
at com.github.nkzawa.socketio.client.IO.socket(IO.java:73)
at com.github.nkzawa.socketio.client.IO.socket(IO.java:37)
at com.github.nkzawa.socketio.client.IO.socket(IO.java:33)
at com.xx.deneme.MainW.(MainW.java:74)
at com.xx.deneme.MainW.main(MainW.java:63)
Caused by: java.lang.ClassNotFoundException: org.json.JSONException
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 6 more
The text was updated successfully, but these errors were encountered: