Re: OpenJDK 10 and Oracle JDK10 doesn't have the same default modules

2018-02-04 Thread Alan Bateman
On 04/02/2018 14:58, Christian Stein wrote: : It's module ' jdk.deploy' in Oracle JDK: [...] jdk.deploy requires java.scripting jrt:/java.scripting [...] https://travis-ci.org/sormuras/beautiful_logger/jobs/337219688#L660 OpenJDK does not ... deploy that one:

Re: OpenJDK 10 and Oracle JDK10 doesn't have the same default modules

2018-02-04 Thread Christian Stein
I solved the issue by also adding "ALL-DEFAULT" to the "--add-module" option. Now both JDK runtimes are happily executing JUnit 5 tests on the module path. java --module-path bin/bach/target/classes/test:bin/bach/modules --add-modules ALL-MODULE-PATH,ALL-DEFAULT --module

Re: OpenJDK 10 and Oracle JDK10 doesn't have the same default modules

2018-02-04 Thread Christian Stein
On Sun, Feb 4, 2018 at 2:39 PM, Alan Bateman wrote: > [...] > I suspect this issue is nothing to do with `--add-modules > ALL-MODULE-PATH`. Instead it's probably one of the JavaFX modules that > `requires java.scripting`. You should be able to diagnose this quickly by >

Re: OpenJDK 10 and Oracle JDK10 doesn't have the same default modules

2018-02-04 Thread Alan Bateman
On 04/02/2018 12:45, Christian Stein wrote: : It's an automatic module. And it does run "as-is" on Oracle JDK, using ALL-MODULE-PATH. Here is the actual command: java --module-path   bin/bach/target/classes/test:bin/bach/modules --add-modules   ALL-MODULE-PATH --module  

Re: OpenJDK 10 and Oracle JDK10 doesn't have the same default modules

2018-02-04 Thread Christian Stein
On Sun, Feb 4, 2018 at 1:38 PM, Alan Bateman wrote: > On 04/02/2018 11:30, Remi Forax wrote: > >> Hi all, >> it seems that the OpenJDK 10 and OracleJDK 10 doest not declare the same >> set of default modules, so java --add-modules ALL-DEFAULT do not behave the >> same

Re: OpenJDK 10 and Oracle JDK10 doesn't have the same default modules

2018-02-04 Thread Alan Bateman
On 04/02/2018 11:30, Remi Forax wrote: Hi all, it seems that the OpenJDK 10 and OracleJDK 10 doest not declare the same set of default modules, so java --add-modules ALL-DEFAULT do not behave the same way :( With Oracle JDK 10 b42, module java.scripting is part of the default modules

OpenJDK 10 and Oracle JDK10 doesn't have the same default modules

2018-02-04 Thread Remi Forax
Hi all, it seems that the OpenJDK 10 and OracleJDK 10 doest not declare the same set of default modules, so java --add-modules ALL-DEFAULT do not behave the same way :( With Oracle JDK 10 b42, module java.scripting is part of the default modules