Maybe but it’s the constant updates to Java which do my head in.
You're supposed to bundle a slimmed-down Java runtime with your app these days, so end-users don't have to deal with updating a system-global "JRE" (which technically doesn't exist anymore, officially).
We are on Java 17, and since Java 9 that hasn't been a thing.
The way now is to use jlinker and create an application specific runtime.
Java is way better than Electron if you’re not on the bleeding edge. Surprisingly so.