made actually use JConsole
Fixed some bugs with System.in sometimes returning EOF