Hello! Anyone succed in using GraalVm native image...
# compose-desktop
p
Hello! Anyone succed in using GraalVm native image to create Compose Desktop native app?
n
a
Native compilation is sadly not possible at the moment (at least in Windows). I gave it a shot yesterday after a long time and yet, failed after spending quite a lot of time. See: https://github.com/oracle/graal/issues/3659#issuecomment-1688810252 https://github.com/oracle/graal/issues/3084 Also, the more disappointing one:
... At the same time, however, our team at Oracle Labs has to prioritize and AWT/Swing use cases aren't our top priority at the moment. I hope you understand.
(https://github.com/oracle/graal/issues/6686#issuecomment-15640728270)
m
It's possible at least on some platforms but requires a lot of hacks to stop CfD using AWT/Swing. The demo linked above uses JWT
Or rather, it's also possible with AWT/Swing, but you need to know what you're doing and do some extra setup work.
Which isn't documented
🫠 1
a
In case you want to experiment, there is this alternative but afaik it's far from stable. https://twitter.com/patrikord/status/1646091213085503488