On 06/07/2016 15:30, Malachi de Ælfweald wrote:
I think I must be misunderstanding your suggestion.
If I do:
export _JAVA_OPTIONS="--add-modules=ALL-SYSTEM
--add-exports=java.base/sun.nio.ch <http://sun.nio.ch>=ALL-UNNAMED"
then:
java -version
reports:
Unrecognized option: --add-modules=ALL-SYSTEM
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
If I do:
export _JAVA_OPTIONS="-Djdk.launcher.addmods=ALL-SYSTEM
-Djdk.launcher.addexports.0=java.base/sun.nio.ch
<http://sun.nio.ch>=ALL-UNNAMED"
then:
java -version
reports:
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+123)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+123, mixed mode)
I should have been clearer. We're in the process of cleaning up the new
options in JDK 9. This work will fix inconsistencies with custom
launchers and embedded usages too and as part of this, the
undocumented/internal system properties that Stephen showed you will go
away. So what you have is okay to get you going but you will need to
change this once these issues have been sorted out.
-Alan