Microsoft, Google, and Apple have invested millions to polish their GUI solutions because that’s where their revenue comes from.
Doing it that way works great for open source where anyone can recompile the software for a new target, but for proprietary software they would have given you a Windows blob and that's about it.
Meanwhile the problems with Java were mostly not the JVM. Its current problem is, of course, Oracle.