module-info compilation on legacy JDK

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


Hi,

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 module-info.java.

How can I do that?

Do I need to compile everything in Java 6 and then module-info.java in Java
9?

Or am I supposed to deliver 2 different jars?

Thanks,
Henri


More information about the jdk9-dev mailing list