I call Oracle the Black Thumb. Everything they touch, aside from their flagship database, dies. Java. Sun. BerkleyDB. Mysql. Taleo. Larry Ellison might be the 4th horseman - he dresses the part.
I'm not a fan of Oracle by any measure, but what you are stating just is not true.
MySql is going strong and is very actively developed. (even if Oracle is predictably trying to have more features in the Enterprise Edition). I'd still always choose Postgres, but that's besides the point.
Java has undergone very positive modernization and change over the last couple of years, following a long period of stagnation, and is the opposite of dying. (Also here, one has to warn though that Oracle is probably trying to abandon the JVM in the long term and move over to GraalVM for monetization).