Question
I'm using jpackage to create a Windows installer with the latest JDK 24 using wix 5.0.2
If I use JDK23 everything works well,
if I use JDK24 I got this error:
jlink failed with: Error: This JDK does not contain packaged modules and cannot be used to create another image with the jdk.jlink module
this is the jpackage command I'm using
jpackage -i target --type exe --main-class org.dpsoftware.JavaFXStarter --main-jar FireflyLuciferin-jar-with-dependencies.jar --icon data/img/java_fast_screen_capture_logo.ico --win-menu --win-menu-group Luciferin --copyright "Davide Perini" --name "Firefly Luciferin" --vendor DPsoftware --win-dir-chooser --win-shortcut --win-per-user-install --win-upgrade-uuid 33c82dc4-e0e0-11ea-87d0-0242ac130003 --app-version "0.0.5" --win-shortcut --win-shortcut-prompt --java-options "-XX:+UseZGC -XX:+UseStringDeduplication -Xms64m -Xmx1024m --add-modules=jdk.incubator.vector"
There was some errors previously with Lombok not supporting JDK24 but now Lombok supports JDK24 and the project compiles without problems.
Java version:
openjdk version "24" 2025-03-18
OpenJDK Runtime Environment Temurin-24+36 (build 24+36)
OpenJDK 64-Bit Server VM Temurin-24+36 (build 24+36, mixed mode, sharing)
jpackage --version
24
Your operating system and platform:
Windows 11 24H2
Is this a bug in the JDK?