Java - software / JAR auto updatable

0

I know that the idea of the forum is first of all to show code of what we are doing, but I really do not know where to start, so I post it (and leave it to the administrators to close the post if they think it is convenient) . I need that my software, in pure java, is a daemon that runs without front-end, it auto-updates under certain circumstances (file in a server that indicates it or something like that). I really can not think of how to do it (but I would put the code of the idea as I always do). It occurs to me that the system should look at a directory of the internal network, a URL or something and if it determines that it is necessary to update itself, it should:

1- Download the files 2- Close 3- Copy the files to overwrite 4- Start again

Now ... I do not see how to make points 3 and 4 ... it occurs to me that it would have to be a combination of 2 programs (javas) that work "coordinated" ... I can not find the way.

I DO NOT PRETEND the code ... IF at least an idea of how to do it or where to guide me. Thanks in advance.

    
asked by Emiliano Torres 01.11.2018 в 16:10
source

0 answers