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

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)

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:

try to change java-client version.

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