JDK-8347024 : JDK24 build2 release say jpackage works with WIX5 - it does not
  • Type: Bug
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: 24
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows
  • CPU: generic
  • Submitted: 2025-01-04
  • Updated: 2025-05-10
  • Resolved: 2025-05-10
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.
Other
tbdResolved
Related Reports
Duplicate :  
Relates :  
Description
ADDITIONAL SYSTEM INFORMATION :
Windows 11 with OpenJDK24ea build 29 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.

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 ----------
package hello;
public class Main {
    public static void main(String... args) {
        System.out.println("Hello World");
    }
}
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Revert to Wix3

FREQUENCY : always



Comments
The submitter confirmed that the suggested fix for the wix installation resolved the problem.
10-05-2025

In jpackage log from https://github.com/adoptium/adoptium-support/issues/1288 bug report: --- [15:55:07.425] Command [PID: 39756]: wix.exe build -nologo -pdbtype none -intermediatefolder C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage5863246471507060686\wixobj -ext WixToolset.Util.wixext -arch x64 -ext WixToolset.UI.wixext -b C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage5863246471507060686\config -loc C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage5863246471507060686\config\MsiInstaller Strings_de.wxl -loc C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage5863246471507060686\config\MsiInstallerStrings_en.wxl -loc C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage5863246471507060686\config\MsiInstallerStrings_ja.wxl -loc C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage5863246471507060686\config\MsiInstallerStrings_zh_CN.wxl -culture en-us -d JpAppDescrip tion=Firefly Luciferin -d JpStartMenuShortcutPrompt=yes -d JpDesktopShortcutPrompt=yes -d JpProductCode=b08b04af-0d92-3023-8c27-d4c980ffdea9 -d JpAppName=Firefly Luciferin -d JpAllowDowngrades=yes -d JpIcon=C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage5863246471507060686\images\win-msi.image\Firefly Luciferin\Firefly Luciferin.exe -d JpAppSizeKb=378050 -d JpAppVersi on=0.0.5 -d JpAfterInstallDirDlg=ShortcutPromptDlg -d JpAllowUpgrades=yes -d JpProductUpgradeCode=33c82dc4-e0e0-11ea-87d0-0242ac130003 -d JpAppVendor=DPsoftware -d JpConfigDir=C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage5863246471507060686\config C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage5863246471507060686\config\main.wxs C:\Users\SBLANT~1\AppData\Local\Tem p\jdk.jpackage5863246471507060686\config\bundle.wxf C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage5863246471507060686\config\ui.wxf C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage5863246471507060686\config\ShortcutPromptDlg.wxs C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage5863246471507060686\config\InstallDirNotEmptyDlg.wxs -out C:\Users\SBLANT~1\AppData\Local\Temp\jdk.jpackage5863246471507060686\wixobj\a.msi [15:55:07.425] Output: wix.exe : error WIX0144: The extension 'WixToolset.Util.wixext' could not be found. Checked paths: WixToolset.Util.wixext [15:55:07.425] Returned: 144 --- Wix failed because it didn't find 'WixToolset.Util.wixext' extension. Apparently, wix installation is incomplete; "WixToolset.Util.wixext" and probably "WixToolset.Ui.wixext" extension(s) are missing. Given wix is already installed and its version is "6.0.0", the following commands will install missing extensions: --- wix extension add -g WixToolset.Util.wixext/6.0.0 wix extension add -g WixToolset.Ui.wixext/6.0.0 --- Run the above commands and then rerun jpackage. It should work.
09-05-2025

[~sgehwolf] could you keep this request updated here ? Please post your new info and feel free to re-open once you have more info
09-05-2025

Similar report at adoptium: https://github.com/adoptium/adoptium-support/issues/1288
05-05-2025

No additional information was provided within three months after it was requested. Close as incomplete.
15-04-2025

Requested information of full output in verbose mode.
02-04-2025

Need more information to evaluate (verbose)
06-01-2025

Need Wix 5 to verify the issue.
06-01-2025