I am a little bit confused about jlink. I am able to compile my source files and then use jlink with the following command
jlink -p $JAVA_HOME/jmods:mymods:<a few jars separated by colon here> \
--add-modules com.myModuleApp \
--output outfolder \
--launcher launch=com.myModuleApp/com.myModuleApp.Main
it returns a tree structure folder like this:
outfolder
├── bin
│ └── launch
├── conf
├── include
├── legal
├── lib
└── release
On jlink --help there is no mention of how to include resources using any of its options.
I am able to run the launcher launch by double clicking it but then I get errors related to not being able to find the resources (naturally, as they are not in the outfolder).
However, even if I try to put the resources manually anywhere and everywhere in the directory tree, the launcher still is not able find the resources.
Is jlink designed to replace javapackager completely, partially, at all?
Can we deploy an app by jlinking the modules in a Java 9 app and then just bundling it in a jar?
If we use jlink, how can we properly include the resources files in the outfolder?
~ thanks in advance ~