What's the best way to add a self-update feature to a Java Swing application?

前端 未结 6 1437
你的背包
你的背包 2020-12-15 09:22

I\'m trying to figure out a way to add a self-update feature to a Java/Swing application I\'m working on.

Basically I\'ve got a bunch of jar files with extra functio

6条回答
  •  不知归路
    2020-12-15 09:35

    we had a swing app 6 years ago that had self-update. like you suggested,

    1)it downloaded the latest jars over http,
    2) copied them to a folder.
    3) since the swing app is launched using a .BAT file, after user said YES, we would shut down the swing app and look for any files in the update folder. if yes, launch another .BAT file to copy the NEW JARs to the required directory.
    4) then re launch the swing app.

提交回复
热议问题