I am trying to create a client socket for a web sockets implementation.
I am using the code from:
https://dzone.com/articles/sample-java-web-socket-client
The code is importing some javax.websocket.* class files.
I have downloaded the jar files from the following link:
http://repo1.maven.org/maven2/javax/javaee-api/7.0/javaee-api-7.0.jar
I set the classpath to the path of the class files during compilation.
The code is compiled, but when I am trying to run the code, it gives an error that the class file is not found.
The link above told that it used tyrus as the websocket API, but as I have glassfish installed in my Ubuntu system, it already contains all the jars for the tyrus.
How can I run the code and fix the dependencies? snapshot of client code