static exit() method more appropriate in Application.java
Syntax error