Hey everyone. Trying to compile some code on windo...
# compose-desktop
h
Hey everyone. Trying to compile some code on windows (after it successfully did the Jar on Arch Linux, however not the Deb package..). I'm getting an interesting error. Is this perhaps because I am using JDK 15?
Copy code
Execution failed for task ':packageMsi'.
> Process 'command 'C:\Users\hamza\.jdks\openjdk-15.0.1\bin\jpackage.exe'' finished with non-zero exit value 1
The stacktrace is just a ton of internal calls. let me know if you need it 😛
Delving further, I see this warning: "Windows Defender may prevent jpackage from functioning. If there is an issue, it can be addressed by either disabling realtime monitoring, or adding an exclusion for the directory "C:\Users\hamza\AppData\Local\Temp\jdk.incubator.jpackage15343530805888717294"." However in Windows defender I don't see anything in the logs except for it telling me to enable it lol
I found the source:
"The system cannot find the file 'C:\Users\hamza\AppData\Local\Temp\jdk.incubator.jpackage5206433044846779663\images\win-msi.image\Shares-Desktop\app\pw\hamzantal\shares\TransformKt$transform$inlined$compareBy$1.class'."
. Fortunately, that compare was being used for a sort and I could omit it, but that is still... annoying that it was not able to be used. Should I post this elsewhere?
a
If you want to create MSI installers on windows, you need to install wix tool
h
Hmm, it worked without me installing that and when I removed the compare statement. I don't think that is the issue
x
@altavir as far as I know
packageMsi
task does install wix by default?
that's what it does for me
h
That was my experience too. I think this issue is not related to Wix but something with collections maybe?
So, something with kotlin itself.. But I am not sure
x
Well since you are already diving into the packageMsi thing. Take a look here: https://github.com/JetBrains/compose-jb/issues/196
Am curious if you stumble over the same issue as well? Because it prevents me from distributing to windows until this is fixed/figured out
h
I saw that! However I don't think that applies to me. I am not using those classes. But a different one related to the kotlin sdlib of jvm
x
"those classes" What do you mean? I understood it being related to using
remember
?
h
"The system cannot find the file 'C:\Users\hamza\AppData\Local\Temp\jdk.incubator.jpackage5206433044846779663\images\win-msi.image\Shares-Desktop\app\pw\hamzantal\shares\TransformKt$transform$inlined$compareBy$1.class'." So.. something with the compareBy class.
x
Ah ok I thought u talked about the linked issue