jlink and automatic modules

Gunnar Morling gunnar at hibernate.org
Sat Dec 10 21:50:36 UTC 2016


Hi,

I've been experimenting a bit with the new jlink tool and got two questions:

* I'm passing a directory with automatic modules via --module-path; this
results in

    Error: module-info.class not found for xyz module

Is this expected, i.e. can automatic modules not be used with jlink?

* I need to explicitly pass the "jmods" directory of my JDK via
--module-path, otherwise the base module isn't found:

    Error: Module java.base not found

I think it'd be reasonable to expose the JDK's modules by default to jlink?

I'm using build 9-ea+148.

Thanks for any pointers,

--Gunnar


More information about the jigsaw-dev mailing list