How does jpackage search for modules?
Tobias Oelgarte
tobias.oelgarte at gmail.com
Mon Feb 25 20:00:07 UTC 2019
I'm wondering how jpackage searches for modules. I tried to build a very
simple example (using Build 17 of jpackage), but jpackage always claims
that the module can't be found.
~$ ./jpackage create-image \
--output /data/projects/javam/de.asysgmbh.app.test/target/image \
--name test \
--main-class de.asysgmbh.app.test.Main \
--module de.asysgmbh.app.test \
--module-path /data/projects/javam/de.asysgmbh.app.test/target/modules
~ $ Module de.asysgmbh.app.test does not exist.
The modules directory contains the file
"de.asysgmbh.app.test-1.0-SNAPSHOT.jar" including the module-info.class
with the module named "de.asysgmbh.app.test".
module de.asysgmbh.app.test { ... }
The following works just fine:
~$ java \
--module-path
/data/projects/javam/de.asysgmbh.app.test/target/modules \
--module de.asysgmbh.app.test/de.asysgmbh.app.test.Main
--
Tobias Oelgarte
Mail: tobias.oelgarte at gmail.com
More information about the core-libs-dev
mailing list