check for java before installing maven
check for java before installing grails
Fix java check