Java became popular on server side because alternatives were much worse (either lacking static typing like Perl or harder to develop like C++) AND Java was cross-platform. Back in those times, servers weren’t just x86+Linux boxes they are today, but had distinct os-es and CPU architectures.