It may be that their efforts to increase profits right now also inhibit Java's pre-eminence in the open source community over the long run. I doubt that's a major concern for them. Oracle is a Fortune 500 company, not a nonprofit foundation.
Java's push onto the web failed (applets), Java's push onto desktops failed (AWT/Swing), Java's push onto mobiles failed (Java ME; Android doesn't count, Google did it despite/against Sun/Oracle). The only truly successful Java domain is Java backends, which was rescued from Java EE hell by Apache, basically.
In the enterprise, open source looks a fair bit like a Java monoculture, and it's one that's become way too heavily influenced by the interests of a very small number of corporations. It's another story that starts off looking like a big success for open source, and ends by looking like a big success for co-opting open source.
I'd be pretty happy to see Java fall down a peg or two, so that we can move back toward being a bit more bazaar and less cathedral.
Focusing on .NET nowadays, but there are definitely a few areas where .NET Core fails short of Java offerings.
Java Card runs on 1+ billion devices.