I downloaded the latest jdk9 build:
java version "9-ea" Java(TM) SE Runtime Environment (build 9-ea+142) Java HotSpot(TM) Server VM (build 9-ea+142, mixed mode)
When i do
/path/jdk-9/bin/java -X
I see an option:
--add-exports <module>/<package>=<target-module>(,<target-module>)* updates <module> to export <package> to <target-module>, regardless of module declaration. <target-module> can be ALL-UNNAMED to export to all unnamed modules.
But when I try to use this option:
/path/jdk-9/bin/java --add-exports:java.base/jdk.internal.ref=ALL-UNNAMED -jar some.jar
I get:
Unrecognized option: --add-exports:java.base/jdk.internal.ref=ALL-UNNAMED
The same for -XaddExports , which I saw in some posts.
What am I doing wrong here?
Do I need a special jdk9 jigsaw distribution? I'm a little confused about the different versions of jdk9, to be honest;)
java java-9
Karussell
source share