adds option to disable the java_version_check on linux

I run into the problem that on machines where I have to specify the java memory requirements (clusters) the java version check would fail. So this PR adds the ability to disable the check manually.