JDK9 Modules

Malachi de Ælfweald malachid at gmail.com
Tue Jul 12 21:24:35 UTC 2016


I notice that with 9-ea+125-2016-07-06-073258.javare.5251.nc, this works:
--add-modules=ALL-SYSTEM --add-exports=java.base/sun.nio.ch=ALL-UNNAMED

With a slightly newer 9-ea+126 from webupd8, it causes:
Unrecognized option: --add-modules=ALL-SYSTEM

Do we need to ask that the WebUpd8 team build with a slightly different
command line?




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

On Wed, Jul 6, 2016 at 11:51 AM, Malachi de Ælfweald <malachid at gmail.com>
wrote:

> Verified that the following works with 9-ea+
> 125-2016-07-06-073258.javare.5251.nc
> export _JAVA_OPTIONS="--add-modules=ALL-SYSTEM --add-exports=java.base/
> sun.nio.ch=ALL-UNNAMED"
>
>
>
>
> Malachi de Ælfweald
> http://www.google.com/profiles/malachid
>
> On Wed, Jul 6, 2016 at 8:03 AM, Malachi de Ælfweald <malachid at gmail.com>
> wrote:
>
>> 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