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.oelga...@gmail.com