Add a check to ensure build with java version acceptable to the server