Added Java version checker