I want to create a small binary out of my Compose desktop app. Following are the options out of the box with Compose:
- Create native package with java runtime (great, but the size is very big)
- Create an Uber (fat) Jar (but it requires Java 11 to run, since Compose library doesn't support older versions)
I believe it is be possible to convert the Uber Jar to native binary using GraalVM. I also tried running native-image command but it created an exe that in turn runs the Jar, which brings back to the same issue; Java 11 has to be installed on the machine. What am I missing?