To make it easier I've uploaded the exported jar file so if you're not interested in the code just download the jar file.
java -jar rabbitListener.jar host port user password virtualhost exchangeName topic
Remember you can use * or # in topics to listen to one or several words