Modular JAR file support
mark.reinhold at oracle.com
mark.reinhold at oracle.com
Tue Apr 5 20:43:03 PDT 2011
2011/4/5 15:46 -0700, mandy.chung at oracle.com:
> I have a prototype to support a modular JAR file be installed on a module library.
Cool -- thanks!
> ...
>
> For example, hello.jar and world.jar are modular JAR files and each
> contains module-info.class entry. hello.jar also contains the manifest.
>
> $ jar tvf hello.jar
> 0 Tue Apr 05 15:16:16 PDT 2011 META-INF/
> 130 Tue Apr 05 15:16:16 PDT 2011 META-INF/MANIFEST.MF
> 276 Tue Apr 05 15:16:14 PDT 2011 module-info.class
> 0 Tue Apr 05 15:16:14 PDT 2011 com/
> 0 Tue Apr 05 15:16:14 PDT 2011 com/greetings/
> 639 Tue Apr 05 15:16:14 PDT 2011 com/greetings/Hello.class
For clarity I think it'd be better to put module-info.class into the
META-INF directory, since that's where other metadata goes. This will
help prevent any confusion about whether module-info.class is something
that one should try to load via Class.forName (which of course wouldn't
work anyway).
- Mark
More information about the jigsaw-dev
mailing list