JDK-8356592 : jpackage still not work with wix 5 or wix 6
  • Type: Bug
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: 24
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_10
  • CPU: x86_64
  • Submitted: 2025-05-04
  • Updated: 2025-05-12
  • Resolved: 2025-05-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25Resolved
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
Windows 11 with OpenJDK24  and Wix --version 5.0.2+aa65968c


A DESCRIPTION OF THE PROBLEM :
jpackage works fine with Wix Toolkit 3 for JDK14 through JDK23. I noticed from JDK24 release notes that build 2 contains changes to enable use with Wix4 and Wix5 "jpackage supports WiX Toolset v4 and v5 on Windows (JDK-8319457". After downloading Wix5, jpackage no longer generates installer.


REGRESSION : Last worked in version 24.0.1

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Use any working JDK23 project which works with jpackage to generate MSI. My project has one line "Hello world" class, built to a jar in folder "build\lib". Steps to jpackage with Wix3:
jpackage --app-version 25.01.0410 --win-console --dest "build/jpackage.dir" --java-options "-XshowSettings:all" --name "My Hello World" --input "build\lib" --main-jar helloworld.jar --type msi --main-class hello.Main

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
jpackage should create working MSI file in build/jpackage.dir.

ACTUAL -
When using same project with only Wix5 on the machine, the command gives error message:
java.io.IOException: Command [wix.exe, build, -nologo, -pdbtype, none, -intermediatefolder, ... , -out, C:\Temp\SYSTEM\jdk.jpackage3190543135658230752\wixobj\a.msi] in C:\Temp\SYSTEM\jdk.jpackage3190543135658230752\images\win-msi.image\My Hello World exited with 144 code

---------- BEGIN SOURCE ----------
---------- BEGIN SOURCE ----------
package hello;
public class Main {
    public static void main(String... args) {
        System.out.println("Hello World");
    }
}
---------- END SOURCE ----------
---------- END SOURCE ----------


Comments
Dup of JDK-8347024
09-05-2025

No response from the submitter.
09-05-2025

Impact -> M (Somewhere in-between the extremes) Likelihood -> L (An unusual case) Workaround -> M (Somewhere in-between the extremes) Priority -> P4
09-05-2025