Possible Duplicate:
How to write a self-updating program in Java?
So, i have a question for you guys. I'm making a game, and i want it to be updateable, such as minecraft or guild wars 2 or any other good game is. my question is how. i have been doing a bunch of looking and i cant really find any good ideas. i already have the connection b/w the server and the client, and so what i need is the transfer of the new files and then replacing the old ones. i'm using the socket
approach, because i think that is the only way... but i'm not sure. what i had: a class in both programs called updateClass. it was the exact same in both. i then had the server send the object over to the client and had the client read the msg embeded within the object, just as a simple test. it said that it was unable to send the object. i had it casted at the recieving end, so im not sure. my question is, am i on the right track? any ideas or suggestions? i'm not looking for specific code, but if you have some i welcome it, i like the challenge. also, how would i get my program to update its class files? seems like it shouldnt be able to while running, which is a slight problem... so let me know what you guys think! thanks in advance!