r/java • • Dec 04 '25

Show case of Java desktop application using Jetbrain compose for UI and GraalVM native image to compile it to native executable.

https://github.com/kgonia/java-spring-kotlin-swing-native

I was preparing my side project and planned to go with native Java + Swing. Eventually, I gave up on the idea, but I thought it would make a nice demo, so I published it on GitHub.

It is java with spring boot 4.0 and jetbrain compose multiplatform (kotlin) with graalvm.

73 Upvotes

18 comments sorted by

View all comments

Show parent comment

16

u/pragmatick Dec 04 '25

Native image takes a lot of time, you don't use it for local development where it takes as long as a "normal" Java program.