Check the java version during agent starting