Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to have a Java application get the latest version of itself?

I would like to make an update finder, so to speak. The client application would send a request to the server, get the latest version, and return it to the user in the form of a prompt:

There is a new update, X.x. Would you like to update?

Something of that nature. How would I go about doing this?

Also, if possible, please don't suggest API's unless it is either really necessary or it would be really hard for a beginner to understand. I would like to keep my project working with core Java packages.

like image 258
mattbdean Avatar asked Dec 08 '25 12:12

mattbdean


1 Answers

Have you looked at Java Web Start?

Updates to a Java Web Start application are automatically downloaded when the application is run standalone from the user's desktop.

http://docs.oracle.com/javase/tutorial/deployment/webstart/

like image 159
Eric J. Avatar answered Dec 10 '25 01:12

Eric J.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!