Updates java version