-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
jpackage failing for WiX Toolset #71
Comments
same problem but with 311 code. for reference runtime {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
//不显示黑框
noConsole = true
}
jpackage {
if (org.gradle.internal.os.OperatingSystem.current().windows) {
jpackageHome = "D:\\develop_env\\jdk-14.0.2"
//installerType = 'msi'
installerName = project.name + '_win_x64'
installerOptions += ['--win-per-user-install', '--win-dir-chooser', '--win-menu', '--win-shortcut']
imageOptions = ['--icon', 'src/main/resources/icon/hellofx.ico']
}
}
} use jpackage in openJDK 14 |
@conor-byrne In this jpackage bug it was also reported that light.exe failed with code 102, but the problem in this case is not a long path name. @conor-byrne @sunsteam Please add the line
at the end of your
and post here the output of the jpackage task. Maybe it helps identifying the problem. |
look like charset problem, below param of light.exe used en-US config , code page 1252, before plugin update to fix , i tried build manually and success as below
first, add it will save the temp file , but need delete or clean the dir before next build and cd to
change wix path and appName and language to yours, like the msi will be found in |
@sunsteam It lloks like this problem will be fixed in JDK 16 - see https://bugs.openjdk.java.net/browse/JDK-8232621. |
@siordache Official step too slow, can plugin catch the error in gradle and run good command to fix ? |
@sunsteam I don't think that this is possible. |
@siordache I download jdk16 ,read the patch log and |
I created an example project. You need the latest JDK 16 Early-Access Build. |
@sunsteam The above solution should fix your problem. However, it is only a workaround. I discovered the real cause of the error and I reported it on the OpenJDK mailing list. The issue is tracked now by JDK-8255619. It will probably be fixed in the next Early-Access release. |
@siordache It can work, thank you. |
Hello there, I'm on Windows 10 (MacBook Pro Dual Boot) using JDK 16, Wix Toolset 3.11.2 and I was facing the error 311 as well.
This is my jpackage command: I found out that my license.txt was causing the problem. It was AINSI encoded and had unvalid characters (ä, ö, ü from the German language). After changing to UTF-8 and replacing the correct characters everything worked out. Maybe this helps someone facing this issue. Cheers |
JDK: 14
Gradle 4.8.1
Badass-Runtime-Plugin: 1.11.4
WiX Toolset: 3.11
Windows 10
Running jpackage gradle task results in the following:
I'm fairly certain that this is a WiX issue due to light.exe having trouble with long path names:
wixtoolset/issues#5314
https://stackoverflow.com/questions/11921637/wix-canf-find-my-file-unable-to-load-file-error-lght0103
Feel free to close this issue, it's more of a PSA for others that might have the same problem.
The text was updated successfully, but these errors were encountered: