Skip to content

How to run chat example using Maven or Gradle? #946

@PhilipRoman

Description

@PhilipRoman

I was looking for an alternative to the chat server instructions (https://tootallnate.github.io/Java-WebSocket/) mentioned in #937.

Apparently, running the examples used to be as simple as this:

ant
java -cp build/examples:dist/java_websocket.jar ChatServer
java -cp build/examples:dist/java_websocket.jar ChatClient

When I tried building it now using Maven or Gradle, the classes under src/main/example/ weren't being compiled so I had to manually javac them and then download SLF4J dependency jars.

Maybe there should be a simple build task so you can do, for example gradle example or mvn example to run the examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions