title: How to pass the Java 9 '--permit-illegal-access' flag to a Webstart application?
body: <p>I got my application running with JRE build 9-ea+163 by passing the <code>--permit-illegal-access</code> flag to the VM. Now I want to start the app with Java Webstart. A first try with</p>
  
  <pre><code>javaws -J--permit-illegal-access &lt;JNLP-Url&gt;
  </code></pre>
  
  <p>does not work. I get the same <code>InaccessibleObjectException</code> with <code>module java.base does not "opens java.util" to unnamed module</code> as without the flag.</p>
  
  <p>Adding <code>&lt;j2se java-vm-args="--permit-illegal-access" version="9*"/&gt;</code> to the JNLP does not help.</p>
  
  <p>Does Webstart support the <code>--permit-illegal-access</code> flag?</p>
  
  <p>Can I furthermore specify the flag in the JNLP file?</p>
  
  <p>Btw, with Java 9</p>
  
  <pre><code>javaws https://docs.oracle.com/javase/tutorialJWS/samples/deployment/NotepadJWSProject/Notepad.jnlp
  </code></pre>
  
  <p>throws an <code>IllegalAccessException</code> and <code>-J--permit-illegal-access</code> doesn't help either.</p>
  
  <p>P.S.: Setting the env variable <code>JAVA_TOOL_OPTIONS</code> to <code>--permit-illegal-access</code> works, but is not a solution since the clients are not accessible.</p>