fix broken `-no-share`

Fix broken `-no-share`.

Because `addJava` cannot handle multiple options at once, iterate over `noshare_opts` to add them as JVM options.