Compilation feedback and version question

Alan Bateman Alan.Bateman at
Wed Oct 28 23:59:41 UTC 2015

On 28/10/2015 20:50, Stephen Colebourne wrote:
> :
> Just to note that my experiments of the last 2 hours suggest that
> "java -listmods" does not show user modules in its output, only JDK
> modules:
>    java -mp jmods -listmods
-listmods will list the names of the modules in the application's module 
graph. In this case, there isn't any initial module (application) 
specified so it defaults to the system modules. I expect this will do 
what you want:

java -mp jmods -addmods org.joda.convert -listmods

> My experiments also only worked with modular jar files. The jmod
> generated files were not recognized as modules at all.
There are a few open issues around the JMOD format. At this time (and 
stated in JEP 261), JMOD files can only be used at compile-time or 
link-time. So for now at least, they are ignored at run-time.


More information about the jigsaw-dev mailing list