module-info compilation on legacy JDK

Henri Tremblay henri at tremblay.pro
Wed Sep 7 18:18:14 UTC 2016


Thanks a lot Rémi pour the answer.

Sorry about the noise. Wasn't aware of the jigsaw-dev list.

On 2 September 2016 at 16:18, Alan Bateman <Alan.Bateman at oracle.com> wrote:

>
>
> 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
>> module-info.java with --release 6 (or -source 6 -target 6 -Xbootclasspath
>> ...) then you compile the module-info.java with --release 9.
>> -with a bytecode tool like ASM, you don't need a module-info.java 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].
>
> -Alan
>
> [1] http://mail.openjdk.java.net/pipermail/jigsaw-dev/2016-Augus
> t/009185.html
>


More information about the jdk9-dev mailing list