Java 9 options --add-exports vs. -XaddExports not recognized
<p>I downloaded the latest jdk9 build:</p>

<pre><code>java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+142)
Java HotSpot(TM) Server VM (build 9-ea+142, mixed mode)
</code></pre>

<p>When I execute</p>

<pre><code>/path/jdk-9/bin/java -X
</code></pre>

<p>I see the option:</p>

<pre><code>--add-exports &lt;module&gt;/&lt;package&gt;=&lt;target-module&gt;(,&lt;target-module&gt;)*
                  updates &lt;module&gt; to export &lt;package&gt; to &lt;target-module&gt;,
                  regardless of module declaration.
                  &lt;target-module&gt; can be ALL-UNNAMED to export to all
                  unnamed modules.
</code></pre>

<p>But when I try to use this option:</p>

<pre><code>/path/jdk-9/bin/java --add-exports:java.base/jdk.internal.ref=ALL-UNNAMED -jar some.jar 
</code></pre>

<p>I get:</p>

<pre><code>Unrecognized option: --add-exports:java.base/jdk.internal.ref=ALL-UNNAMED
</code></pre>

<p>The same for <code>-XaddExports</code> which I saw in some posts.</p>

<p><strong>What am I doing wrong here?</strong></p>

<p>Do I need a special jigsaw jdk9 distribution? I'm a bit confused about the different jdk9 versions to be honest ;)</p>