Adds java version switching