personally i find it very easy to make apps for the JVM in Kotlin. IntelliJ support for Java and Kotlin is the best IDE support for any language ever - creating a project, debugging, running tests, refactoring, etc. are seamless. Gradle packages are usually very good quality (although log4shell did originate there). The JVM is fast and reliable, and IME it’s much easier to track down exceptions than C-based apps or JavaScript. The JVM runs on macOS, Windows, Linux, and Android (though not iOS or web).
The main downsides of the JVM are that “native” or neat-looking UI is a lot harder than Electron, your apps will probably have the distinctive Swing style. Moreover, the JVM itself is not lightweight (I think it’s about 150MB), and you have to either include the JVM in your executable or download it on client machines.