more changes to JavaApplication.java