Got it, it's clearly stated in the JEP: "The default set of root modules for the unnamed module is based upon thejava.se module rather than the java.se.ee module." Thanks!
> On 24 Aug 2016, at 13:00, Alan Bateman <alan.bate...@oracle.com> wrote: > > On 24/08/2016 11:41, Paul Bakker wrote: > >> Hello, >> >> When compiling code that uses classes from java.xml.bind, it is necessary to >> explicitly pass "-addmods java.xml.bind" to javac. Looking at the JDK module >> graph [1], I get the impression that javac uses java.se <http://java.se/> by >> default. Is this correct? >> >> Paul >> >> [1] https://bugs.openjdk.java.net/secure/attachment/57772/jdk.png >> <https://bugs.openjdk.java.net/secure/attachment/57772/jdk.png> > If you are compiling code in the unnamed module then you will need -addmods > (or `--add-modules` with the new style). Ditto for runtime when the main > class is loaded from the class path. All the details are in JEP 261, > specifically the section on "Root modules" [1]. > > -Alan > > [1] http://openjdk.java.net/jeps/261#root-modules