Where did you get this "Java failed" idea? Java is one of the most widely used languages in the whole world...
You know, the use-case it was originally designed for. (I read the hype for Java 1.0, I was there.)
Nobody at the time could imagine that Java would eventually become the enterprise COBOL replacement.
It's argued that only IDEs use Java, but Java + Swing strikes me as the most popular cross-platform language and toolkit currently in use.
Looks pretty much living the dream of portable language-agnostic VM for user-facing apps to me.