Application runs on the command line but doesn't compile on IntelliJ 14