Yes, Java is basically new COBOL. Ugly yet to stay in a lot of places for a while.
You should realize that Java (JVM and libraries) is completely open source (GPL). Oracle JDK is just another build of OpenJDK.
This means the ecosystem is not tied to a vendor: if you build your systems on Java, you are your own master.