Adds setup needed for headless java, adds different jdks to run on.