module-info compilation on legacy JDK

Alan Bateman Alan.Bateman at
Fri Sep 2 20:18:24 UTC 2016

On 02/09/2016 19:32, Remi Forax wrote:
> Hi Henry,
> there are two ways to do that,
> -with javac, you first compile all your .java files but the with --release 6 (or -source 6 -target 6 -Xbootclasspath ...) then you compile the with --release 9.
> -with a bytecode tool like ASM, you don't need a in that case, because you can generate it, so you compile all your classes with javac --release 6 and you generate the module-info.class with the bytecode tool.
> BTW, the right list for this kind of questions is still jigsaw-dev.
Yes, jigsaw-dev is the list for ths.  A similar thread was posted there 
last week discussing how to do this with Maven [1].



More information about the jdk9-dev mailing list