How to make an updater
So i have a jar file called My_Game.jar
The folders go like this:
My_Game.jar
--client
-comm
aa.class
-gui
bb.class
ImageLoader.class
--images
-imageA.png
-imageB.png
-util
cc.class
--common
-dd.class
To access these two images, I call:
Class loader = ImageLoader.class;
BufferedInputStream imgStream =new BufferedInputStream(loader.getResourceAsStream("images/"+path));
Image i = ImageIO.read(imgStream);
Now that you see how I'm loading the images, I will pose my question. On my server, I will have a file which lists all the resources for the game. Let's say that right now it lists:
imageA
imageB
imageC
The updater will see that it needs to download imageC, but how do I get the new image into the jar file?
Thanks

