Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto update java application

I am building Java application that will be downloaded for free from the web. I want to add an auto update feature in case of fixing bugs or enhancing the application. For auto update I split my program to 3 units.

  1. Base - very small code that will check for new version of second unit(Uploader) update it and run it
  2. Uploader will check for new update of the project and download any update and run it
  3. Main program- this contains the main application and contains all modules.

I did above for 2 reasons:

  1. I don't want the client to restart the application in case of any update
  2. As the application still new I don't want to have any problem where user will not be able to run or update the application, so the Base is very small and it hardly has errors.

Is there a common Java method/third party to do the auto update?

like image 231
aymankoo Avatar asked Apr 16 '13 03:04

aymankoo


People also ask

What is Update4j?

Update4j is the first auto-update and launcher library designed for Java 9+. Easily host your application files anywhere (even Google Drive, Dropbox, Amazon S3, or Maven Central) and you can synchronize them with all your distributed applications.

Does Java need updating?

The latest Java patches contain important enhancements to improve performance, stability and security of the Java applications that run on your machine. Installing these updates will ensure that your Java applications continue to run with the most up-to-date version.


1 Answers

Java Web Start (JWS) is the Oracle Corporation technology used to launch rich client (Swing, AWT, SWT) desktop applications directly from a network or internet link. It offers 'one click' installation for platforms that support Java.

JWS provides many appealing features including, but not limited to, splash screens, desktop integration, file associations, automatic update (including lazy downloads and programmatic control of updates), partitioning of natives & other resource downloads by platform, architecture or Java version, configuration of run-time environment (minimum J2SE version, run-time options, RAM etc.), easy management of common resources using extensions..

like image 180
Andrew Thompson Avatar answered Oct 25 '22 21:10

Andrew Thompson