I've been having trouble finding information on how I might go about hosting a .jar file with a simple Java server. Basically, I'm writing a 2D game in Java and I would like to create a launcher that, given internet access is present, will check for the latest version on launch and download the newest version if necessary. Now, I'm aware I could use a file sharing site, simply up the latest build and have the launcher download from there; I just happen to find the redundancy of hosting the file on a Java server that I will myself be running all the more satisfying.
So basically, my question is: how would I create a Java server that simply hosts the latest build's .jar file and when an incoming connection requests it, the server sends that entire file to the client PC?
Also, please omit any concerns regarding the possible inefficiency of downloading the entire game .jar, as the game will be extremely small. The only threat of an over-sized download I can foresee is with music; however, I could create a separate request for music files and only grab what is needed. That goes the same for graphical assets if they become an issue as well, but 16x16 textures don't strike me as having potential for getting in the way.