i try to create server-client with websockets in JDK. Unfortunately i cannot import javax.websocket.* (As it is only java EE).
Is there a way to implement Websockets with JDK? I cant find a working example. Or do i have to use generic sockets?
i try to create server-client with websockets in JDK. Unfortunately i cannot import javax.websocket.* (As it is only java EE).
Is there a way to implement Websockets with JDK? I cant find a working example. Or do i have to use generic sockets?
If the dependency is missing download it and add it to your JAR:
Right-click the project folder for the project on which you are working, and click Properties. Click Java Build Path in the left pane. Click the Libraries tab. Complete one of the following steps: To add an internal dependency, click Add JARs, select the JAR file that you want to add, then click OK.
or create a maven project and let it manage your dependencies.
Or just take a look in the tutorial how to create a maven project for websockets: tutorial