This is a simple Java chat application built with the Apache AVRO framwork for Remote Method Invocation. It is built to work distributed on different devices.
Compile the Avro schemes into Java code using the following commands
cd lib/
java -jar avro-tools-1.7.7.jar compile -string protocol ../src/chat.avpr ../src/
java -jar avro-tools-1.7.7.jar compile -string protocol ../src/chatClientServer.avpr ../src/
Import the project in Eclipse as an existing Java project.
First start the Server, then the different clients.
Use our CLI for chatting
Compile the Avro schemes into Java code using the following commands
cd lib/
java -jar avro-tools-1.7.7.jar compile -string protocol ../src/chat.avpr ../src/
java -jar avro-tools-1.7.7.jar compile -string protocol ../src/chatClientServer.avpr ../src/
Compile the java code
cd ..
ant build
Start your server on port 10010 for example
cd bin/
java -classpath ".:../lib/avro-1.7.7.jar:../lib/avro-ipc-1.7.7.jar:../lib/jackson-core-asl-1.9.13.jar:../lib/jackson-mapper-asl-1.9.13.jar:../lib/slf4j-api-1.7.7.jar:../lib/slf4j-simple-1.7.7.jar:../lib/asg.cliche-110413.jar" avro/chat/server/ChatServer 10010
Start as many clients as you want. Use help
for possible arguments.
java -classpath ".:../lib/avro-1.7.7.jar:../lib/avro-ipc-1.7.7.jar:../lib/jackson-core-asl-1.9.13.jar:../lib/jackson-mapper-asl-1.9.13.jar:../lib/slf4j-api-1.7.7.jar:../lib/slf4j-simple-1.7.7.jar:../lib/asg.cliche-110413.jar:../lib/xuggle-xuggler-5.4.jar" avro/chat/client/ChatClient help
Eduard Besjentsev & Olivier Brewaeys