java -modulepath

Alan Bateman Alan.Bateman at oracle.com
Sun Jun 26 07:37:22 PDT 2011


Tom Marble wrote:
>
> Alan:
>
> This sounds fantastic!
>
> I am eagerly awaiting this webrev as this functionality seems critical 
> to experimenting with and verifying intended Jigsaw behavior prior to 
> adding modules to "the system module library".
>
> Would it be possible for you to document some accompanying "Hello 
> Modular World!" examples to demonstrate how to think about Jigsaw 
> design? Grokking the new design patterns is complicated by the lack of 
> examples and the existing documention covering many points in 
> development history (many of which may now be out of date).
>
> Thanks,
>
> --Tom
>
Thanks Tom. I will send the webrev soon (but not today as I've several 
things to get cleared away before going on vacation).

The tests in jdk/test/org/openjdk/jigsaw/ might be useful to see where 
things are now. They compile with -modulepath and then install the 
modules into a module library (named "z.lib" rather than the system 
module library).  The most obvious difference with supporting modulepath 
at runtime is you can run with the modules that javac generates and so 
you avoid needing to install them. This is useful for fast 
edit/build/run cycles. Point taken that we will need to update slides 
and other material to explain the possible workflows.

-Alan.




More information about the jigsaw-dev mailing list