Use headless version of Java and set options for jRuby and Java