Closed fendo8888 closed 1 month ago
I used a project created by idea without adding any code. I modified the window packaging information and added the following code to build.gradle.kts.
java.io.IOException: Command [light.exe, -nologo, -spdb, -ext, WixUtilExtension, -out, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-exe.image\demo-1.2.0.msi, -ext, WixUIExtension, -b, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\config, -sice:ICE27, -loc, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\config\MsiInstallerStrings_zh_CN.wxl, -cultures:zh-CN, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\main.wixobj, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\bundle.wixobj, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\ui.wixobj, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\InstallDirNotEmptyDlg.wixobj] in C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-msi.image\demo exited with 103 code
complete project demo.zip
windows { packageVersion = "1.2.0" msiPackageVersion = "1.2.0" exePackageVersion = "1.2.0" iconFile.set(project.file("icon.ico")) }
Full error log
........... 2023-11-17T14:12:56.851+0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 6: acquired lock on worker lease 2023-11-17T14:12:56.851+0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 6: released lock on worker lease 2023-11-17T14:12:56.990+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Execute run for :packageReleaseExe' 2023-11-17T14:12:56.991+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Executing task ':packageReleaseExe'' 2023-11-17T14:12:56.991+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Snapshot outputs after executing task ':packageReleaseExe'' started 2023-11-17T14:12:56.992+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Snapshot outputs after executing task ':packageReleaseExe'' 2023-11-17T14:11:44.816+0800 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] 2023-11-17T14:11:44.816+0800 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :packageReleaseExe FAILED 2023-11-17T14:12:56.910+0800 [QUIET] [system.out] [14:11:29.303] Running candle.exe 2023-11-17T14:12:56.910+0800 [QUIET] [system.out] [14:11:30.007] Running light.exe 2023-11-17T14:12:56.911+0800 [QUIET] [system.out] [14:11:31.004] ??? [light.exe] ?�� [3.11.2.4516]?? 2023-11-17T14:12:56.911+0800 [QUIET] [system.out] [14:11:31.004] ??? [candle.exe] ?�� [3.11.2.4516]?? 2023-11-17T14:12:56.911+0800 [QUIET] [system.out] [14:11:31.005] ??? WiX 3.11.2.4516????????????????????? 2023-11-17T14:12:56.911+0800 [QUIET] [system.out] [14:11:33.792] ????????????? [icon] (????? D:\idea_work\rvp\outsource\demo\icon.ico ????)?? 2023-11-17T14:12:56.911+0800 [QUIET] [system.out] [14:11:33.846] ???��Windows Defender ???????? jpackage ???????????????????????????????????????????? "C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325" ??????????????? 2023-11-17T14:12:56.911+0800 [QUIET] [system.out] [14:11:33.851] ????????????? WinLauncher.template [????????????????????????]???? demo.properties ???? resource-dir ??????��?????? 2023-11-17T14:12:56.911+0800 [QUIET] [system.out] [14:11:38.006] ????????????? InstallDirNotEmptyDlg.wxs [Not empty install directory dialog WiX project file]???? InstallDirNotEmptyDlg.wxs ???? resource-dir ??????��?????? 2023-11-17T14:12:56.911+0800 [QUIET] [system.out] [14:11:38.015] MSI ProductCode??e7fd6293-9f3e-3cf5-9cb4-f4f2c88547d4?? 2023-11-17T14:12:56.911+0800 [QUIET] [system.out] [14:11:38.016] MSI UpgradeCode??516cc37c-74bd-3acb-a601-87589b8913b4?? 2023-11-17T14:12:56.911+0800 [QUIET] [system.out] [14:11:38.099] ????????????? main.wxs [?? WiX ??????]???? main.wxs ???? resource-dir ??????��?????? 2023-11-17T14:12:56.912+0800 [QUIET] [system.out] [14:11:38.101] ????????????? overrides.wxi [???? WiX ??????]???? overrides.wxi ???? resource-dir ??????��?????? 2023-11-17T14:12:56.912+0800 [QUIET] [system.out] [14:11:38.103] ??????? MSI ????: C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-exe.image\demo-1.2.0.msi?? 2023-11-17T14:12:56.912+0800 [QUIET] [system.out] [14:11:38.105] ???????? MSI: C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-exe.image\demo-1.2.0.msi?? 2023-11-17T14:12:56.912+0800 [QUIET] [system.out] [14:11:38.117] Running candle.exe in C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-msi.image\demo 2023-11-17T14:12:56.912+0800 [QUIET] [system.out] [14:11:39.889] Command [PID: 3792]: 2023-11-17T14:12:56.912+0800 [QUIET] [system.out] candle.exe -nologo C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\config\main.wxs -ext WixUtilExtension -arch x64 -out C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\main.wixobj -dJpAppDescription=demo -dJpProductCode=e7fd6293-9f3e-3cf5-9cb4-f4f2c88547d4 -dJpAppName=demo -dJpIsSystemWide=yes -dJpAllowDowngrades=yes -dJpIcon=C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-msi.image\demo\demo.exe -dJpAppSizeKb=1381251 -dJpAppVersion=1.2.0 -dJpAllowUpgrades=yes -dJpProductUpgradeCode=516cc37c-74bd-3acb-a601-87589b8913b4 -dJpAppVendor=��? -dJpConfigDir=C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\config 2023-11-17T14:12:56.912+0800 [QUIET] [system.out] [14:11:39.889] Output: 2023-11-17T14:12:56.912+0800 [QUIET] [system.out] main.wxs 2023-11-17T14:12:56.912+0800 [QUIET] [system.out] [14:11:39.892] Returned: 0 2023-11-17T14:12:56.912+0800 [QUIET] [system.out] 2023-11-17T14:12:56.912+0800 [QUIET] [system.out] [14:11:39.893] Running candle.exe in C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-msi.image\demo 2023-11-17T14:12:56.912+0800 [QUIET] [system.out] [14:11:41.924] Command [PID: 23580]: 2023-11-17T14:12:56.913+0800 [QUIET] [system.out] candle.exe -nologo C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\config\bundle.wxf -ext WixUtilExtension -arch x64 -out C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\bundle.wixobj 2023-11-17T14:12:56.913+0800 [QUIET] [system.out] [14:11:41.924] Output: 2023-11-17T14:12:56.913+0800 [QUIET] [system.out] bundle.wxf 2023-11-17T14:12:56.913+0800 [QUIET] [system.out] [14:11:41.924] Returned: 0 2023-11-17T14:12:56.913+0800 [QUIET] [system.out] 2023-11-17T14:12:56.913+0800 [QUIET] [system.out] [14:11:41.925] Running candle.exe in C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-msi.image\demo 2023-11-17T14:12:56.913+0800 [QUIET] [system.out] [14:11:44.064] Command [PID: 19900]: 2023-11-17T14:12:56.913+0800 [QUIET] [system.out] candle.exe -nologo C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\config\ui.wxf -ext WixUtilExtension -arch x64 -out C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\ui.wixobj 2023-11-17T14:12:56.913+0800 [QUIET] [system.out] [14:11:44.064] Output: 2023-11-17T14:12:56.913+0800 [QUIET] [system.out] ui.wxf 2023-11-17T14:12:56.913+0800 [QUIET] [system.out] [14:11:44.064] Returned: 0 2023-11-17T14:12:56.913+0800 [QUIET] [system.out] 2023-11-17T14:12:56.913+0800 [QUIET] [system.out] [14:11:44.064] Running candle.exe in C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-msi.image\demo 2023-11-17T14:12:56.913+0800 [QUIET] [system.out] [14:11:49.370] Command [PID: 21652]: 2023-11-17T14:12:56.913+0800 [QUIET] [system.out] candle.exe -nologo C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\config\InstallDirNotEmptyDlg.wxs -ext WixUtilExtension -arch x64 -out C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\InstallDirNotEmptyDlg.wixobj -dJpAfterInstallDirDlg=VerifyReadyDlg 2023-11-17T14:12:56.914+0800 [QUIET] [system.out] [14:11:49.370] Output: 2023-11-17T14:12:56.914+0800 [QUIET] [system.out] InstallDirNotEmptyDlg.wxs 2023-11-17T14:12:56.914+0800 [QUIET] [system.out] [14:11:49.370] Returned: 0 2023-11-17T14:12:56.914+0800 [QUIET] [system.out] 2023-11-17T14:12:56.914+0800 [QUIET] [system.out] [14:11:49.371] Running light.exe in C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-msi.image\demo 2023-11-17T14:12:56.914+0800 [QUIET] [system.out] [14:12:56.396] Command [PID: 23992]: 2023-11-17T14:12:56.914+0800 [QUIET] [system.out] light.exe -nologo -spdb -ext WixUtilExtension -out C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-exe.image\demo-1.2.0.msi -ext WixUIExtension -b C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\config -sice:ICE27 -loc C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\config\MsiInstallerStrings_zh_CN.wxl -cultures:zh-CN C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\main.wixobj C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\bundle.wixobj C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\ui.wixobj C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\InstallDirNotEmptyDlg.wixobj 2023-11-17T14:12:56.914+0800 [QUIET] [system.out] [14:12:56.396] Output: 2023-11-17T14:12:56.914+0800 [QUIET] [system.out] C:\Users\fendo\AppData\Local\Temp\3gqa454b\3gqa454b\demo-1.2.0.msi : error LGHT0103 : The system cannot find the file 'C:\Users\fendo\AppData\Local\Temp\3gqa454b\3gqa454b\demo-1.2.0.msi'. 2023-11-17T14:12:56.914+0800 [QUIET] [system.out] [14:12:56.396] Returned: 103 2023-11-17T14:12:56.914+0800 [QUIET] [system.out] 2023-11-17T14:12:56.914+0800 [QUIET] [system.out] [14:12:56.397] java.io.IOException: Command [light.exe, -nologo, -spdb, -ext, WixUtilExtension, -out, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-exe.image\demo-1.2.0.msi, -ext, WixUIExtension, -b, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\config, -sice:ICE27, -loc, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\config\MsiInstallerStrings_zh_CN.wxl, -cultures:zh-CN, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\main.wixobj, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\bundle.wixobj, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\ui.wixobj, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\InstallDirNotEmptyDlg.wixobj] in C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-msi.image\demo exited with 103 code 2023-11-17T14:12:56.914+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Executor.java:90) 2023-11-17T14:12:56.915+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.WixPipeline.execute(WixPipeline.java:135) 2023-11-17T14:12:56.915+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.WixPipeline.buildMsi(WixPipeline.java:99) 2023-11-17T14:12:56.915+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.WinMsiBundler.buildMSI(WinMsiBundler.java:557) 2023-11-17T14:12:56.915+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.WinMsiBundler.execute(WinMsiBundler.java:416) 2023-11-17T14:12:56.915+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.WinExeBundler.bundle(WinExeBundler.java:104) 2023-11-17T14:12:56.915+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.WinExeBundler.execute(WinExeBundler.java:77) 2023-11-17T14:12:56.915+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:674) 2023-11-17T14:12:56.915+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:551) 2023-11-17T14:12:56.915+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:91) 2023-11-17T14:12:56.915+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:52) 2023-11-17T14:12:56.915+0800 [QUIET] [system.out] [14:12:56.909] jdk.jpackage.internal.PackagerException: java.io.IOException: Command [light.exe, -nologo, -spdb, -ext, WixUtilExtension, -out, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-exe.image\demo-1.2.0.msi, -ext, WixUIExtension, -b, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\config, -sice:ICE27, -loc, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\config\MsiInstallerStrings_zh_CN.wxl, -cultures:zh-CN, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\main.wixobj, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\bundle.wixobj, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\ui.wixobj, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\InstallDirNotEmptyDlg.wixobj] in C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-msi.image\demo exited with 103 code 2023-11-17T14:12:56.915+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.WinMsiBundler.execute(WinMsiBundler.java:419) 2023-11-17T14:12:56.915+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.WinExeBundler.bundle(WinExeBundler.java:104) 2023-11-17T14:12:56.916+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.WinExeBundler.execute(WinExeBundler.java:77) 2023-11-17T14:12:56.916+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:674) 2023-11-17T14:12:56.916+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:551) 2023-11-17T14:12:56.916+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:91) 2023-11-17T14:12:56.916+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:52) 2023-11-17T14:12:56.916+0800 [QUIET] [system.out] Caused by: java.io.IOException: Command [light.exe, -nologo, -spdb, -ext, WixUtilExtension, -out, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-exe.image\demo-1.2.0.msi, -ext, WixUIExtension, -b, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\config, -sice:ICE27, -loc, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\config\MsiInstallerStrings_zh_CN.wxl, -cultures:zh-CN, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\main.wixobj, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\bundle.wixobj, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\ui.wixobj, C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\wixobj\InstallDirNotEmptyDlg.wixobj] in C:\Users\fendo\AppData\Local\Temp\jdk.jpackage8381082029227259325\images\win-msi.image\demo exited with 103 code 2023-11-17T14:12:56.916+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Executor.java:90) 2023-11-17T14:12:56.916+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.WixPipeline.execute(WixPipeline.java:135) 2023-11-17T14:12:56.916+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.WixPipeline.buildMsi(WixPipeline.java:99) 2023-11-17T14:12:56.916+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.WinMsiBundler.buildMSI(WinMsiBundler.java:557) 2023-11-17T14:12:56.916+0800 [QUIET] [system.out] at jdk.jpackage/jdk.jpackage.internal.WinMsiBundler.execute(WinMsiBundler.java:416) 2023-11-17T14:12:56.917+0800 [QUIET] [system.out] ... 6 more 2023-11-17T14:12:56.963+0800 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED 2023-11-17T14:12:56.963+0800 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command 'G:\jdks\openjdk-17.0.9\bin\jpackage.exe'' finished with exit value 1 (state: FAILED) 2023-11-17T14:12:56.963+0800 [DEBUG] [org.gradle.internal.file.impl.DefaultDeleter] Deleting D:\idea_work\rvp\outsource\demo\build\compose\tmp\packageReleaseExe 2023-11-17T14:12:56.991+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Execute run for :packageReleaseExe' completed 2023-11-17T14:12:56.991+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Executing task ':packageReleaseExe'' completed 2023-11-17T14:12:56.991+0800 [DEBUG] [org.gradle.internal.vfs.impl.AbstractVirtualFileSystem] Invalidating VFS paths: [D:\idea_work\rvp\outsource\demo\build\compose\binaries\main-release\exe, D:\idea_work\rvp\outsource\demo\build\compose\tmp\resources, D:\idea_work\rvp\outsource\demo\build\compose\logs\packageReleaseExe, D:\idea_work\rvp\outsource\demo\build\compose\tmp\sign, D:\idea_work\rvp\outsource\demo\build\compose\tmp\skiko, D:\idea_work\rvp\outsource\demo\build\compose\tmp\packageReleaseExe] 2023-11-17T14:12:56.992+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Snapshot outputs after executing task ':packageReleaseExe'' completed 2023-11-17T14:12:56.992+0800 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter] Removed task artifact state for task ':packageReleaseExe' from context. 2023-11-17T14:12:56.992+0800 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Opening cache outputFiles.bin (D:\idea_work\rvp\outsource\demo\.gradle\buildOutputCleanup\outputFiles.bin) 2023-11-17T14:12:56.993+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Task :packageReleaseExe' 2023-11-17T14:12:56.993+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Task :packageReleaseExe' completed 2023-11-17T14:12:56.993+0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :packageReleaseExe completed, executed: true 2023-11-17T14:12:56.993+0800 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :packageReleaseExe failed 2023-11-17T14:12:56.993+0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 7: released lock on state of build : 2023-11-17T14:12:56.993+0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 7: released lock on task execution for build : 2023-11-17T14:12:56.993+0800 [INFO] [org.gradle.execution.plan.DefaultPlanExecutor] :packageReleaseExe (Thread[Execution worker Thread 7,5,main]) completed. Took 1 mins 29.51 secs. 2023-11-17T14:12:56.993+0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[included builds,5,main]] finished, busy: 0.401 secs, idle: 1 mins 29.719 secs 2023-11-17T14:12:56.993+0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 7: released lock on worker lease 2023-11-17T14:12:56.993+0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] included builds: acquired lock on worker lease 2023-11-17T14:12:56.994+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 1209: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultOperationFinishedProgressEvent@25e67cd2] 2023-11-17T14:12:56.994+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 1209: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultOperationFinishedProgressEvent@26ffaef1] 2023-11-17T14:12:56.994+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Run tasks' 2023-11-17T14:12:56.994+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Run tasks' completed 2023-11-17T14:12:56.994+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 1209: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultOperationStartedProgressEvent@30362610] 2023-11-17T14:12:56.994+0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] included builds: released lock on worker lease 2023-11-17T14:12:56.994+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 1209: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultOperationFinishedProgressEvent@4ba73d2a] 2023-11-17T14:12:56.994+0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 6: acquired lock on worker lease 2023-11-17T14:12:56.994+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 1209: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultTaskFinishedProgressEvent@1f43f2c4] 2023-11-17T14:12:56.994+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Run main tasks' 2023-11-17T14:12:56.994+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Run main tasks' completed 2023-11-17T14:12:56.995+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 1209: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultOperationFinishedProgressEvent@2186068b] 2023-11-17T14:12:56.995+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 1209: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultOperationFinishedProgressEvent@65b938ac] 2023-11-17T14:12:56.995+0800 [DEBUG] [org.jetbrains.kotlin.gradle.plugin.statistics.KotlinBuildStatHandler] Executing [class org.jetbrains.kotlin.gradle.plugin.statistics.KotlinBuildStatHandler.buildFinished] 2023-11-17T14:12:56.996+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Execute 'allprojects {}' action' started 2023-11-17T14:12:56.996+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 1209: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultOperationStartedProgressEvent@cb96600] 2023-11-17T14:12:56.996+0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 6: acquired lock on state of build : 2023-11-17T14:12:56.996+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Cross-configure project :' started 2023-11-17T14:12:56.996+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 1209: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultOperationStartedProgressEvent@56b283cc] 2023-11-17T14:12:56.997+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Cross-configure project :' 2023-11-17T14:12:56.997+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Cross-configure project :' completed 2023-11-17T14:12:56.997+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 1209: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultOperationFinishedProgressEvent@4350403a] 2023-11-17T14:12:56.997+0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 6: released lock on state of build : 2023-11-17T14:12:56.997+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Execute 'allprojects {}' action' 2023-11-17T14:12:56.997+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Execute 'allprojects {}' action' completed 2023-11-17T14:12:56.997+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 1209: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultOperationFinishedProgressEvent@1d094853] 2023-11-17T14:12:56.998+0800 [DEBUG] [org.jetbrains.kotlin.gradle.plugin.KotlinGradleBuildServices$Inject] [KOTLIN] Disposed KotlinGradleBuildServices 2023-11-17T14:12:57.000+0800 [LIFECYCLE] [org.gradle.internal.buildevents.TaskExecutionStatisticsReporter] 8 actionable tasks: 1 executed, 7 up-to-date 2023-11-17T14:12:57.000+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Build finished for file system watching' started 2023-11-17T14:12:57.000+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 1209: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultOperationStartedProgressEvent@1560a538] 2023-11-17T14:12:57.011+0800 [INFO] [org.gradle.internal.watch.registry.impl.HierarchicalFileWatcherUpdater] Watched directory hierarchies: [D:\idea_work\rvp\outsource\demo, D:\idea_work\rvp\outsource\zhifu-box] 2023-11-17T14:12:57.017+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Build finished for file system watching' 2023-11-17T14:12:57.017+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Build finished for file system watching' completed 2023-11-17T14:12:57.017+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 1209: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultOperationFinishedProgressEvent@72a2aa9e] 2023-11-17T14:12:57.028+0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-supplier (C:\Users\fendo\.gradle\caches\7.5.1\md-supplier) 2023-11-17T14:12:57.028+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-supplier (C:\Users\fendo\.gradle\caches\7.5.1\md-supplier). 2023-11-17T14:12:57.049+0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for execution history cache (D:\idea_work\rvp\outsource\demo\.gradle\7.5.1\executionHistory) 2023-11-17T14:12:57.049+0800 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache executionHistory.bin (D:\idea_work\rvp\outsource\demo\.gradle\7.5.1\executionHistory\executionHistory.bin) 2023-11-17T14:12:57.049+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on execution history cache (D:\idea_work\rvp\outsource\demo\.gradle\7.5.1\executionHistory). 2023-11-17T14:12:57.064+0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Build Output Cleanup Cache (D:\idea_work\rvp\outsource\demo\.gradle\buildOutputCleanup) 2023-11-17T14:12:57.064+0800 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache outputFiles.bin (D:\idea_work\rvp\outsource\demo\.gradle\buildOutputCleanup\outputFiles.bin) 2023-11-17T14:12:57.064+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Build Output Cleanup Cache (D:\idea_work\rvp\outsource\demo\.gradle\buildOutputCleanup). 2023-11-17T14:12:57.071+0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-rule (C:\Users\fendo\.gradle\caches\7.5.1\md-rule) 2023-11-17T14:12:57.071+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-rule (C:\Users\fendo\.gradle\caches\7.5.1\md-rule). 2023-11-17T14:12:57.071+0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker Thread 10,5,main]] finished, busy: 0.0 secs, idle: 1 mins 30.171 secs 2023-11-17T14:12:57.071+0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker Thread 2,5,main]] finished, busy: 0.0 secs, idle: 1 mins 30.18 secs 2023-11-17T14:12:57.071+0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker Thread 5,5,main]] finished, busy: 0.0 secs, idle: 1 mins 30.171 secs 2023-11-17T14:12:57.071+0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker Thread 4,5,main]] finished, busy: 0.0 secs, idle: 1 mins 30.172 secs 2023-11-17T14:12:57.071+0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker Thread 9,5,main]] finished, busy: 0.0 secs, idle: 1 mins 30.179 secs 2023-11-17T14:12:57.071+0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker Thread 11,5,main]] finished, busy: 0.0 secs, idle: 1 mins 30.171 secs 2023-11-17T14:12:57.071+0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker,5,main]] finished, busy: 0.0 secs, idle: 1 mins 30.165 secs 2023-11-17T14:12:57.071+0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker Thread 7,5,main]] finished, busy: 1 mins 29.692 secs, idle: 0.472 secs 2023-11-17T14:12:57.071+0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker Thread 6,5,main]] finished, busy: 0.0 secs, idle: 1 mins 30.164 secs 2023-11-17T14:12:57.071+0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker Thread 8,5,main]] finished, busy: 0.001 secs, idle: 1 mins 30.178 secs 2023-11-17T14:12:57.071+0800 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker Thread 3,5,main]] finished, busy: 0.0 secs, idle: 1 mins 30.179 secs 2023-11-17T14:12:57.073+0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs) 2023-11-17T14:12:57.074+0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs) 2023-11-17T14:12:57.085+0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 6 resolution results binary files in 0.013 secs 2023-11-17T14:12:57.086+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Run build' 2023-11-17T14:12:57.086+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 1209: dispatching BuildEvent[event=org.gradle.internal.build.event.types.DefaultOperationFinishedProgressEvent@2a226c5c] 2023-11-17T14:12:57.086+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Run build' completed 2023-11-17T14:12:57.086+0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 6: released lock on worker lease 2023-11-17T14:12:57.088+0800 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopping 0 deployment handles 2023-11-17T14:12:57.088+0800 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopped deployment handles 2023-11-17T14:12:57.098+0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for checksums cache (D:\idea_work\rvp\outsource\demo\.gradle\7.5.1\checksums) 2023-11-17T14:12:57.098+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on checksums cache (D:\idea_work\rvp\outsource\demo\.gradle\7.5.1\checksums). 2023-11-17T14:12:57.109+0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file hash cache (D:\idea_work\rvp\outsource\demo\.gradle\7.5.1\fileHashes) 2023-11-17T14:12:57.109+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file hash cache (D:\idea_work\rvp\outsource\demo\.gradle\7.5.1\fileHashes). 2023-11-17T14:12:57.109+0800 [DEBUG] [org.gradle.cache.internal.DefaultPersistentDirectoryStore] VCS Checkout Cache (D:\idea_work\rvp\outsource\demo\.gradle\vcs-1) has last been fully cleaned up 0 hours ago 2023-11-17T14:12:57.109+0800 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache VCS Checkout Cache (D:\idea_work\rvp\outsource\demo\.gradle\vcs-1) was closed 0 times. 2023-11-17T14:12:57.109+0800 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache VCS metadata (D:\idea_work\rvp\outsource\demo\.gradle\7.5.1\vcsMetadata) was closed 0 times. 2023-11-17T14:12:57.126+0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for dependencies-accessors (D:\idea_work\rvp\outsource\demo\.gradle\7.5.1\dependencies-accessors) 2023-11-17T14:12:57.126+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on dependencies-accessors (D:\idea_work\rvp\outsource\demo\.gradle\7.5.1\dependencies-accessors). 2023-11-17T14:12:57.126+0800 [DEBUG] [org.gradle.cache.internal.DefaultPersistentDirectoryStore] dependencies-accessors (D:\idea_work\rvp\outsource\demo\.gradle\7.5.1\dependencies-accessors) has last been fully cleaned up 0 hours ago 2023-11-17T14:12:57.129+0800 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has finished executing the build. 2023-11-17T14:12:56.998+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2023-11-17T14:12:56.998+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong: 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':packageReleaseExe'. 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > External tool execution failed: 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Command: [G:\jdks\openjdk-17.0.9\bin\jpackage.exe, @D:\idea_work\rvp\outsource\demo\build\compose\tmp\packageReleaseExe.args.txt] 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Working dir: [] 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exit code: 1 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Standard output log: D:\idea_work\rvp\outsource\demo\build\compose\logs\packageReleaseExe\jpackage-2023-11-17-14-11-28-out.txt 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Error log: D:\idea_work\rvp\outsource\demo\build\compose\logs\packageReleaseExe\jpackage-2023-11-17-14-11-28-err.txt 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try: 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Run with --stacktrace option to get the stack trace. 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Run with --scan to get full insights. 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] 2023-11-17T14:12:56.999+0800 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 1m 47s 14:12:58: Execution finished 'packageReleaseExe --debug'.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
I used a project created by idea without adding any code. I modified the window packaging information and added the following code to build.gradle.kts.
complete project demo.zip
Full error log