Add support for checking java version and crashing if not up to date