Move _JAVA_OPTIONS stuff to dedicated script