get rid of dependency of java version and move it in the project