Review request: jar tool to transform a plain jar file to a modularjar

Mandy Chung mandy.chung at oracle.com
Mon Sep 12 15:44:57 PDT 2011


  On 09/12/11 07:15, Michael Bien wrote:
>  any chance to add shortcuts to those common execution commands?
>
> $ java mlib com.greetings
> as shortcut for
> $ java -L mlib -m com.greetings
>

BTW, you don't need the -L option when the module is in the system 
module library.

IMO, I don't think "java -m com.greetings" is not command-line 
friendly.  "-m" option is a way to tell the launcher to run the 
application in module mode.  With "-m" option, it'll launch the 
application in legacy mode as today.

> or even
> $ java mlib
> if there is such thing like a default main method.
>

I think you meant the default module.  This only saves to type the 
module name for one single module in a module library.

> modules have great potential to make java commandline friendly.
>

It already does as you no longer need the classpath in modules :)

Mandy



More information about the jigsaw-dev mailing list