Java was rather popular because of its multimedia capabilities and its ability to run on virtually any system, even if it was rather slow at first. However, better plug-ins came around the corner, with the authors trying their darnest to keep the plug-in good for computers.
The final blow was when it was revealed that Java had loads of security holes that went unpatched for decades on end.