separate function to run given java version
clojure port of experiment-20 without modifications