It survived but it didn't dominate the way that was expected. In the late '90s, Java was positioned and expected to be in the place that webapps live today - that is, something within your browser that would handle interactive live client/server applications.