JDK9 Modules

Malachi de Ælfweald malachid at gmail.com
Wed Jul 6 15:03:28 UTC 2016


I don't have a problem changing it to the new properties once they work =)

Actually, that's probably why they didn't work in the gradle configuration.



Malachi de Ælfweald
http://www.google.com/profiles/malachid

On Wed, Jul 6, 2016 at 7:44 AM, Alan Bateman <Alan.Bateman at oracle.com>
wrote:

>
>
> 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=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=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
>


More information about the jigsaw-dev mailing list