Setting correct java version for compilation