setting correct Java version