I've said before and I will say it again: the biggest issue with Java is Java developers.
If you're allowed to use the newer libraries and tools, it has actually been a perfectly fine language to write software in, even relatively quickly, since ~Java 8 or 11.
I have had elaborate fantasies of what I would do to the designers of JavaEE if I ever found them, and I had assumed that because writing JavaEE is so unbelievably horrible that the entirety of the platform was like that. Years later I had a different job that was much more amenable to me using "modern" Java, so I used Vert.x and Disruptor and properly learned how to use NIO and and I actually had fun.
I think Java has been the "regression to the mean" language primarily because it's taught to frequently in schools and it allows you to write in a very verbose and irritating style, meaning that it was a great fit for mediocre-to-incompetent engineers who want to look like they're doing a lot.
Enterprise Java Beans
sigh