TooTallNate/Java-WebSocket — Issue #48: I got an error 'java.lang.NoClassDefFoundError: sun.misc.BASE64Encoder'.
Author: rememberkarl
Created: 2011-12-01 12:12:53+00:00
State: open

Hi guys.
I'm sorry, I want you to understand I don't speak English very well.
I use a TooTallNate java-WebSocket package, but when I compile a java project with TooTallNate, I got an error.

FATAL EXCEPTION: Thread-15
java.lang.NoClassDefFoundError: sun.misc.BASE64Encoder
at net.tootallnate.websocket.drafts.Draft_10.generateFinalKey(Draft_10.java:303)
at net.tootallnate.websocket.drafts.Draft_10.postProcessHandshakeResponseAsServer(Draft_10.java:253)
at net.tootallnate.websocket.WebSocket.handleRead(WebSocket.java:198)
at net.tootallnate.websocket.WebSocketServer.run(WebSocketServer.java:228)
at java.lang.Thread.run(Thread.java:1019)

There are lines of an error in java
Could you please help me to solve this error?

Thank you.
karl.