I am creating a Java application that will be downloaded free of charge from the Internet. I want to add an automatic update function in case of error correction or application improvement. For automatic updates, I divided my program into 3 units.
- Base is a very small code that will check the new version of the second device (Uploader), update it and run it.
- Uploader checks for a new project update and downloads any update and launches it
- The main program is the main application and contains all the modules.
I did this for two reasons:
- I do not want the client to restart the application in case of any update.
- Since the application is still new, I do not want to have any problems when the user cannot start or update the application, so the database is very small and hardly has errors.
Is there a common Java / third-party method for automatic updates?
source share