Also I recommend Debian as the base OS. Use the NetInstall ISO and install only the bare esentials: ssh server
It's a lot more lightweight than Ubuntu. Uses maybe 300MB RAM before starting the server
Then install the java runtime environment and download and run the server. I have a script that will start the server in its own virtual screen (for better management) if you're interested.