Hi, When using --add-launcher together with --runtime-image, jpackager exits with the error message: java.lang.ClassCastException: class java.util.ImmutableCollections$List12 cannot be cast to class java.lang.String (java.util.ImmutableCollections$List12 and java.lang.String are in module java.base of loader 'bootstrap')
For example, the following command fails: jpackage --dest pkg --name main --module example/example.Main --runtime-image ./image --add-launcher secondary=./secondary.properties However, it works when using --module-path instead of --runtime-image: jpackage --dest pkg --name main --module example/example.Main --module-path ./mods --win-console --add-launcher secondary=./secondary.properties A reproducer is available here: https://github.com/SSCCE/jpackage-launcher-issue. This error seems to occur only in JDK-17. JDK-16 is not affected by this issue: https://github.com/SSCCE/jpackage-launcher-issue/actions/runs/1933837183. - Serban