How do I create an updater for some files in a java program?
Tha开发者_运维技巧t is, I have:
program.jar -> my java program
dir_xml / -> list of xml files that can be updated
Check out Java Web Start.. It essentially does what Swaranga Sarma suggests above.
It takes care of deploying your program and keeping your program files updated. It even ensures the client's java version is correct.
Code a client making a GET
request to the server. GET
the http
response from the server and GET
the file.
精彩评论