fast java version selection