jpackage on Windows: The system cannot find file, error 103 - scala

I am trying to package a ScalaFx app I built using jpackage and having trouble on windows (mac & linux work just fine).
I am building a fat jar using sbt assembly and then using jpackage to create a .msi however I am getting this error:
$ jpackage --win-shortcut --name krystalbull --app-version 0.1 --type msi -i target/scala-2.13/ --main-class com.krystal.bull.gui.GUI --main-jar krystal-bull-assembly-0.1.jar --icon src/main/resources/icons/krystal_bull.ico --verbose
shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
env:
pkg-assembly: krystal-bull-assembly-0.1.jar
pkg-name: krystalbull
pkg-version: 0.1
JAVA_HOME_16.0.1_x64: C:\hostedtoolcache\windows\jdk\16.0.1\x64
JAVA_HOME: C:\hostedtoolcache\windows\jdk\16.0.1\x64
JAVA_HOME_16_0_1_X64: C:\hostedtoolcache\windows\jdk\16.0.1\x64
[21:10:32.469] Running candle.exe
[21:10:32.541] Running C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe
[21:10:34.005] Running light.exe
[21:10:34.024] Running C:\Program Files (x86)\WiX Toolset v3.11\bin\light.exe
[21:10:35.848] Detected [light.exe] version [3.11.2.4516].
[21:10:35.848] Detected [candle.exe] version [3.11.2.4516].
[21:10:35.849] WiX 3.11.2.4516 detected. Enabling advanced cleanup action.
[21:10:46.540] Command:
jlink --output C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\runtime --module-path C:\\hostedtoolcache\\windows\\jdk\\16.0.1\\x64\\jmods --add-modules jdk.management.jfr,java.rmi,jdk.jdi,jdk.charsets,jdk.xml.dom,java.xml,java.datatransfer,jdk.jstatd,jdk.httpserver,java.desktop,java.security.sasl,jdk.zipfs,java.base,jdk.crypto.ec,jdk.javadoc,jdk.management.agent,jdk.jshell,jdk.editpad,jdk.jsobject,java.sql.rowset,jdk.sctp,jdk.jlink,jdk.unsupported,java.smartcardio,java.security.jgss,java.compiler,jdk.nio.mapmode,jdk.dynalink,jdk.unsupported.desktop,jdk.accessibility,jdk.security.jgss,java.sql,jdk.incubator.vector,java.xml.crypto,java.logging,java.transaction.xa,jdk.jfr,jdk.crypto.cryptoki,jdk.net,java.naming,jdk.internal.ed,java.prefs,java.net.http,jdk.compiler,jdk.naming.rmi,jdk.internal.opt,jdk.jconsole,jdk.attach,jdk.crypto.mscapi,jdk.internal.le,java.management,jdk.jdwp.agent,jdk.internal.jvmstat,jdk.incubator.foreign,java.instrument,jdk.management,jdk.security.auth,java.scripting,jdk.jdeps,jdk.jartool,jdk.jpackage,java.management.rmi,jdk.naming.dns,jdk.localedata --strip-native-commands --strip-debug --no-man-pages --no-header-files
[21:10:46.540] Output:
WARNING: Using incubator modules: jdk.incubator.vector, jdk.incubator.foreign
[21:10:46.544] Returned: 0
(loaded from file D:\a\krystal-bull\krystal-bull\src\main\resources\icons\krystal_bull.ico).
[21:10:46.560] Using default package resource WinLauncher.template [Template for creating executable properties file] (add krystalbull.properties to the resource-dir to customize).
[21:10:47.532] MSI ProductCode: c47093f7-318f-3c33-b6f9-e8a8c4adb014.
[21:10:47.533] MSI UpgradeCode: c62bde9b-3ba1-3197-8853-ba4770495959.
[21:10:47.536] Using default package resource main.wxs [Main WiX project file] (add main.wxs to the resource-dir to customize).
[21:10:47.537] Using default package resource overrides.wxi [Overrides WiX project file] (add overrides.wxi to the resource-dir to customize).
[21:10:47.540] Preparing MSI config: D:\a\krystal-bull\krystal-bull\krystalbull-0.1.msi.
[21:10:47.541] Generating MSI: D:\a\krystal-bull\krystal-bull\krystalbull-0.1.msi.
[21:10:47.552] Running C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe in C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull
[21:10:50.004] Command:
C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe -nologo C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\main.wxs -ext WixUtilExtension -arch x64 -out C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\wixobj\main.wixobj -dJpAppDescription=krystalbull -dJpAppVersion=0.1 -dJpProductCode=c47093f7-318f-3c33-b6f9-e8a8c4adb014 -dJpAppName=krystalbull -dJpAllowUpgrades=yes -dJpProductUpgradeCode=c62bde9b-3ba1-3197-8853-ba4770495959 -dJpIsSystemWide=yes -dJpAllowDowngrades=yes -dJpIcon=C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\krystalbull.exe -dJpAppVendor=Unknown -dJpConfigDir=C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\config
[21:10:50.004] Output:
main.wxs
[21:10:50.005] Returned: 0
[21:10:50.005] Running C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe in C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull
[21:10:51.344] Command:
C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe -nologo C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf -ext WixUtilExtension -arch x64 -out C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\wixobj\bundle.wixobj
[21:10:51.344] Output:
bundle.wxf
[21:10:51.346] Returned: 0
[21:10:51.348] Running C:\Program Files (x86)\WiX Toolset v3.11\bin\light.exe in C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull
[21:10:53.013] Command:
C:\Program Files (x86)\WiX Toolset v3.11\bin\light.exe -nologo -spdb -ext WixUtilExtension -out D:\a\krystal-bull\krystal-bull\krystalbull-0.1.msi -sice:ICE27 -loc C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\MsiInstallerStrings_en.wxl -cultures:en-us C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\wixobj\main.wixobj C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\wixobj\bundle.wixobj
[21:10:53.015] Output:
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(41) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\FileMenu$anon$2.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(56) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\dialog\ViewEventDialog$anon$10$anon$21$anonfun$lessinit$greater$1.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(71) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\SettingsMenu$anon$5.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(111) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\dialog\ViewEventDialog$anon$4.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(116) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\home\HomePane$anon$4.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(151) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\home\HomePane$anon$28.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(206) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\dialog\CreateNumericEventDialog$anon$6.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(221) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\home\HomePane$anon$10$anon$16.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(226) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\landing\LandingPane$anon$5.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(236) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\dialog\ViewEventDialog$anon$10.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(256) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\dialog\ViewEventDialog$anon$10$anon$22.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(271) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\dialog\CreateEnumEventDialog$anon$12$anon$13$anon$14.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(301) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\TaskRunner$anon$1$anon$2.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(336) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\home\HomePane$anon$10$anon$11.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(356) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\dialog\ViewEventDialog$anon$10$anon$16.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(366) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\dialog\CreateNumericEventDialog$anon$4.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(391) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\ViewMenu$anon$9.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(411) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\dialog\CreateEnumEventDialog$anon$1.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(426) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\HelpMenu$anon$13.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(436) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\landing\LandingPane$anon$7.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(451) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\home\HomePane$anon$21.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(461) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\ViewMenu$anon$9$anon$10.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(476) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\home\HomePane$anon$2.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(531) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\home\HomePane$anon$10$anon$14.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(546) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\dialog\ViewEventDialog$anon$2.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(556) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\dialog\CreateEnumEventDialog$anon$12$anon$15$anon$17.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(561) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\home\HomePane$anon$17.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(596) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\GUI$anon$1.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(601) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\home\HomePane$anon$23.class'.
C:\Users\runneradmin\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\bundle.wxf(631) : error LGHT0103 : The system cannot find the file 'C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull\app\classes\com\krystal\bull\gui\home\HomePane$anon$18.class'.
.. more of the same ..
[21:10:53.019] Returned: 103
[21:10:53.020] java.io.IOException: Command [C:\Program Files (x86)\WiX Toolset v3.11\bin\light.exe, -nologo, -spdb, -ext, WixUtilExtension, -out, D:\a\krystal-bull\krystal-bull\krystalbull-0.1.msi, -sice:ICE27, -loc, C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\MsiInstallerStrings_en.wxl, -cultures:en-us, C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\wixobj\main.wixobj, C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\wixobj\bundle.wixobj] in C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull exited with 103 code
at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Executor.java:91)
at jdk.jpackage/jdk.jpackage.internal.WixPipeline.execute(WixPipeline.java:135)
at jdk.jpackage/jdk.jpackage.internal.WixPipeline.buildMsi(WixPipeline.java:99)
at jdk.jpackage/jdk.jpackage.internal.WinMsiBundler.buildMSI(WinMsiBundler.java:521)
at jdk.jpackage/jdk.jpackage.internal.WinMsiBundler.execute(WinMsiBundler.java:386)
at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:664)
at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:538)
at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:98)
at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:52)
[21:10:53.512] jdk.jpackage.internal.PackagerException: java.io.IOException: Command [C:\Program Files (x86)\WiX Toolset v3.11\bin\light.exe, -nologo, -spdb, -ext, WixUtilExtension, -out, D:\a\krystal-bull\krystal-bull\krystalbull-0.1.msi, -sice:ICE27, -loc, C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\MsiInstallerStrings_en.wxl, -cultures:en-us, C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\wixobj\main.wixobj, C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\wixobj\bundle.wixobj] in C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull exited with 103 code
at jdk.jpackage/jdk.jpackage.internal.WinMsiBundler.execute(WinMsiBundler.java:389)
at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:664)
at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:538)
at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:98)
at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:52)
Caused by: java.io.IOException: Command [C:\Program Files (x86)\WiX Toolset v3.11\bin\light.exe, -nologo, -spdb, -ext, WixUtilExtension, -out, D:\a\krystal-bull\krystal-bull\krystalbull-0.1.msi, -sice:ICE27, -loc, C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\config\MsiInstallerStrings_en.wxl, -cultures:en-us, C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\wixobj\main.wixobj, C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\wixobj\bundle.wixobj] in C:\Users\RUNNER~1\AppData\Local\Temp\jdk.jpackage17983400798231933520\images\win-msi.image\krystalbull exited with 103 code
at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Executor.java:91)
at jdk.jpackage/jdk.jpackage.internal.WixPipeline.execute(WixPipeline.java:135)
at jdk.jpackage/jdk.jpackage.internal.WixPipeline.buildMsi(WixPipeline.java:99)
at jdk.jpackage/jdk.jpackage.internal.WinMsiBundler.buildMSI(WinMsiBundler.java:521)
at jdk.jpackage/jdk.jpackage.internal.WinMsiBundler.execute(WinMsiBundler.java:386)
... 4 more
Error: Process completed with exit code 1.

Unfortunately this a bug in jpackage itself for windows
jpackage does not properly escape class file names for the WIX pre-processor.
See:
https://github.com/wixtoolset/issues/issues/6734
Bug tracker for the issue on openjdk:
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8282351

jpackage fails on Windows when application name differs from installer name as mentioned in the issue here
It works for me if I specify the same argument to --name is I specified for the app image.
(The same name as for the app-image command, but you might want to change the name).

Related

RegAsm : error RA0000 failed to load dll because it is not a valid .NET Assembly

I am facing a problem with installshield 2012 while registering the DLL using Regasm from exec task in MSBuild script. Its giving the below error:
[Step 6/10] RegAsm : error RA0000 : Failed to load 'E:\BuildAgent\work\2ae7096f1a3f5702\dev\bin\Obfusc-Contributor\orgname.ShellExtension.FileManager.dll' because it is not a valid .NET assembly
[05:45:33] [Step 6/10] RegAsm.exe failed. E:\BuildAgent\work\2ae7096f1a3f5702\dev\bin\Obfusc-Contributor\orgname.ShellExtension.FileManager.reg was not created for Component Colligo.ShellExtension.FileManager.dll1
[05:45:33] [Step 6/10] ISDEV : error -6210: An error occurred building COM .NET Interop information for Component orgname.ShellExtension.FileManager.dll1
This is happening on windows 10 . The same task is working fine on Windows 2008 machine

How to solution the following error when build EmulatorPkg ?

when I run build -p EmulatorPkg\EmulatorPkg.dsc -t VS2019 -a X64, it show the following error
LINK : warning LNK4108:ָ /ALIGN ûָ /DRIVERӳܲ
LINK : warning LNK4001: δָļʹÿ
LINK : warning LNK4068: δָ /MACHINEĬΪ X86
LINK : error LNK2001: ޷ⲿ _ModuleEntryPoint
d:\edk2\edk2\Build\EmulatorX64\DEBUG_VS2019\X64\WinHost.lib : fatal error LNK1120: 1 ޷ⲿ
NMAKE : fatal error U1077: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\
MSVC\14.25.28610\bin\Hostx86\x64\link.exe": ش롰0x460
Stop.
Building ... d:\edk2\edk2\EmulatorPkg\BootModePei\BootModePei.inf [X64]
build.py...
: error 7000: Failed to execute command
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\bin
\Hostx86\x86\nmake.exe /nologo tbuild [d:\edk2\edk2\Build\EmulatorX64\DEBUG_VS2019\X64\EmulatorPkg\Win
\Host\WinHost]
build.py...
: error F002: Failed to build module
d:\edk2\edk2\EmulatorPkg\Win\Host\WinHost.inf [X64, VS2019, DEBUG]
- Failed -
Build end time: 22:18:35, Apr.07 2020
Build total time: 00:00:13
but when build MdeModulePkg/MdeModulePkg.dsc, it not have any error.
The error was caused by missing support for VS2019 in this module.
Support was added upstream in commit 998d4c98b7c6 ("EmulatorPkg/WinHost: Add link flags for VS2019 tool chains.").

install4j Windows Edition 7.0.9 - an error in Install file step

install4j Windows Edition 7.0.9(build7273)
I run the exe file and get an error from "Install files" step
this step copy my files to $ folder (temporary folder)
Install file: D:\RT.Server.Service.Pack.7.1.1\$\rtserver.install4j\i4jinst.dll; size: 171008 bytes; exists: false
[ERROR] com.install4j.runtime.beans.actions.InstallFilesAction [ID 53416]: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:428)
windows server2012 R2
-
-

Makefile command line arguments confused with MinGW directory paths

I'm trying to run a make all command but I get a very confusing error, it seems as if the arguments from 'cl' are mistaken as directory paths in MinGW. The output I'm getting:
cl /EHsc /MD /nologo /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS -nologo /O2 -DN
DEBUG -DUSE_CBC -DUSE_CLP /D__WIN32__ /Iinclude\\src\\windows /DGFLAGS_DLL_DECL=
/DGFLAGS_DLL_DECLARE_FLAG= /DGFLAGS_DLL_DEFINE_FLAG= /Iinclude /I. -DUSE_GLOP -
DUSE_BOP -c examples\\cpp\\costas_array.cc /Foobjs\\costas_array.obj
That's the cl command, not the warnings and errors (note that cl /EHsc actually gets mistaken for 'C:/MinGW/MSYS/1.0/EHsc', etc...):
cl : Command line warning D9024 : unrecognized source file type 'C:/MinGW/MSYS/1
.0/EHsc', object file assumed
cl : Command line warning D9027 : source file 'C:/MinGW/MSYS/1.0/EHsc' ignored
cl : Command line warning D9024 : unrecognized source file type 'C:/MinGW/MSYS/1
.0/MD', object file assumed
cl : Command line warning D9027 : source file 'C:/MinGW/MSYS/1.0/MD' ignored
cl : Command line warning D9024 : unrecognized source file type 'C:/MinGW/MSYS/1
.0/nologo', object file assumed
cl : Command line warning D9027 : source file 'C:/MinGW/MSYS/1.0/nologo' ignored
... etc ... Until there's the fatal error at the end
cl : Command line warning D9024 : unrecognized source file type 'C:/MinGW/MSYS/1
.0/I.', object file assumed
cl : Command line warning D9027 : source file 'C:/MinGW/MSYS/1.0/I.' ignored
cl : Command line warning D9027 : source file 'C:/MinGW/MSYS/1.0/Foobjs/costas_a
rray.obj' ignored
costas_array.cc
examples\cpp\costas_array.cc(27): fatal error C1083: Cannot open include file: '
ortools/base/callback.h': No such file or directory
make: *** [objs\\costas_array.obj] Error 2
Any help about why is this happening would be highly appreciated, I am not very experienced in this matter.
It's the MSYS shell doing these translations for you in an attempt of being helpful.
With the tools typically used in this shell, it's no problem because arguments/options start with a - or -- (the Unix and/or GNU convention). It starts getting into your way as soon as you need command-line tools following the Microsoft convention for options and flags, using /.
Unfortunately, for the original MSYS, I'm not aware of a way to disable this translation. But there is one for MSYS2, see the question I asked about it: You just need to set an environment variable, e.g.
export MSYS2_ARG_CONV_EXCL=\*
So, my suggestion would be you upgrade your tools to MSYS2 and use this.

'shp2pgsql' is not recognized : command not found error

I am trying to import shape file to postgis. I have problem configuring shp2pgsql.
I am getting this error :
-bash: shp2pgsql: command not found
I have read different threads without getting any results like: https://github.com/Homebrew/homebrew/issues/19213
macbook$ locate shp2pgsql
/Library/PostgreSQL/9.3/PostGIS/man/shp2pgsql.1
/Library/PostgreSQL/9.3/bin/shp2pgsql
/usr/bin/shp2pgsql
macbook$ otool -L shp2psql
otool: can't open file: shp2psql (No such file or directory)
I tried to run which command
macbook$ which shp2pgsql
I got nothing .
macbook$ ls /usr/bin/shp2pgsql
/usr/bin/shp2pgsql
First guess was that "shp2pgsql" is not linked. How can I link /usr/bin/shp2pgsql in postgres PostgreSQL when I tried to run :
sudo ln -s /Library/PostgreSQL/9.3/bin/shp2pgsql /usr/bin/shp2pgsql
It says that : : ln: /usr/bin/shp2pgsql: File exists
UPDATE
When I linked shp2pgsql
dyld: Library not loaded: #loader_path/../lib/liblwgeom-2.1.1.dylib
Referenced from: /Library/PostgreSQL/9.3/bin/shp2pgsql
Reason: image not found
When i tried to locate liblwgeom
macbook$ locate liblwgeom
/Library/Caches/Homebrew/Formula/liblwgeom.brewing
/Library/Caches/Homebrew/liblwgeom-2.1.1.tar.gz
/Library/PostgreSQL/9.3/lib/postgresql/liblwgeom-2.1.1.dylib
/Library/PostgreSQL/9.3/lib/postgresql/liblwgeom.a
/Library/PostgreSQL/9.3/lib/postgresql/liblwgeom.dylib
/Library/PostgreSQL/9.3/lib/postgresql/liblwgeom.la
/usr/local/Cellar/liblwgeom
/usr/local/Cellar/liblwgeom/2.1.1
/usr/local/Cellar/liblwgeom/2.1.1/COPYING
/usr/local/Cellar/liblwgeom/2.1.1/ChangeLog
/usr/local/Cellar/liblwgeom/2.1.1/INSTALL_RECEIPT.json
/usr/local/Cellar/liblwgeom/2.1.1/LICENSE.TXT
/usr/local/Cellar/liblwgeom/2.1.1/NEWS
/usr/local/Cellar/liblwgeom/2.1.1/TODO
/usr/local/Cellar/liblwgeom/2.1.1/include
/usr/local/Cellar/liblwgeom/2.1.1/include/liblwgeom.h
/usr/local/Cellar/liblwgeom/2.1.1/lib
/usr/local/Cellar/liblwgeom/2.1.1/lib/liblwgeom-2.1.1.dylib
/usr/local/Cellar/liblwgeom/2.1.1/lib/liblwgeom.a
/usr/local/Cellar/liblwgeom/2.1.1/lib/liblwgeom.dylib
/usr/local/Library/Formula/liblwgeom.rb
/usr/local/opt/liblwgeom
Any thoughts how to resolve this problem.
Write echo $PATH in your bash console and tell us what it says.
Probably this can be fixed by
PATH=$PATH:/Library/PostgreSQL/9.3/bin/
export PATH