Java has always been a good language if you ignored the ecosystem. The ecosystem is a large part of what defines a language though. You have to take care in how you define that ecosystem.
I sometimes wonder if Node.js is making mistakes in the opposite direction as Java with their ecosystem these days.