Exception in thread "main" java.lang.NoClassDefFoundError: javax/websocket/DeploymentException


#1

When i am running application…I am getting the below error:

Exception in thread “main” java.lang.NoClassDefFoundError: javax/websocket/DeploymentException

at io.appium.java_client.android.ListensToLogcatMessages.(ListensToLogcatMessages.java:34)

at base.main(base.java:24)

Caused by: java.lang.ClassNotFoundException: javax.websocket.DeploymentException

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)


#2

you have an issue on driver initialization on base if you add screenshot from base that’s will be great to check your issue :slight_smile:


#3


#4

try to change java-client version.


#5

Tried by changing java-client version also, but it’s still not working and i am getting the same error.