Simple chat application with minimum dependencies written in pure Java. Several types of a client program can be created:
- [done] console client (reads from stdin/writes to stdout)
- [done] window client (using Swing)
- [done] text client
- allow username changes
- personal messages/ chatrooms
- Build the app using
mvn clean package
- Run the app. To get help, you can call the jar with -h option:
java -jar target/chat11.jar -h
which would print following message:
Usage: [one of]
java -jar chat11.jar -h prints this message
java -jar chat11.jar -s [port] stars server on port (deault: 8881)
java -jar chat11.jar -c host port username starts console client that connects to host on port as username
java -jar chat11.jar -cc host port username starts curses console client that connects to host on port as username
java -jar chat11.jar -cg host port username starts swing gui client that connects to host on port as username
Three clients in action: