module-info compilation on legacy JDK

Henri Tremblay henri at
Fri Sep 2 17:53:52 UTC 2016


I might not have look hard enough but I can't find a documentation about it.

So I figured here is a good place to ask. I'm pretty sure this was
discussed before.

I would like to provide a jar that is a JDK 9 module but that can run on
older JDK. So a jar that is compiled for Java 6 for instance but that still
have the

How can I do that?

Do I need to compile everything in Java 6 and then in Java

Or am I supposed to deliver 2 different jars?


More information about the jdk9-dev mailing list