What os for java server
I am new to online servers and I am looking for a server to host a Java program I wrote. I want a server where I can add socketListeners and have control over what is going on.

I hear about tomcat and glassfish, but those are not java program servers, they're Java servlet servers. If I try to google for a java server, I get JSP or JSF but never what I'm looking for.

I am guessing I need atleast a VPS with any OS (Java is multi-platform, so I guess it doesn't matter which one for Java)
But I can't stop thinking I'm missing something important, it almost seems like Java isn't meant to run on a server like this.

Now my question is:
What OS can I use best for a server to host java programs, what are the pro's & cons.

PS: If I am missing something, please do tell!
What os for java server
===

I am new to online servers and I am looking for a server to host a Java program I wrote. I want a server where I can add socketListeners and have control over what is going on.

I hear about tomcat and glassfish, but those are not java program servers, they're Java servlet servers. If I try to google for a java server, I get JSP or JSF but never what I'm looking for.

I am guessing I need atleast a VPS with any OS (Java is multi-platform, so I guess it doesn't matter which one for Java)
But I can't stop thinking I'm missing something important, it almost seems like Java isn't meant to run on a server like this.

Now my question is:
What OS can I use best for a server to host java programs, what are the pro's & cons.

PS: If I am missing something, please do tell!