By 1995, OOP was becoming established as the preferred paradigm going forward. The main pedagogical alternatives were c++ (too complex, not pure OOP) or Smalltalk (too weird, too expensive, too dynamic). Java was real OOP, relatively simple, well-designed, and free.
Java was first released in mid-1995, just 6 months before JS.
By 98, when I went to college, Java was already used for all the first level courses in the CS program.
How did it catch on so quickly (just 3 years) to shift university curriculum, which is usually so slow/behind?