The existing "nashorn.args" system property can be used to append options to the explicitly specified command line, however we need to be able to prepend options too (as later options override earlier options). Using a separate system property "nashorn.args.prepend" would solve this.