Implement the automatic update function of JavaFX application

I want to write a new cross platform application. I chose JavaFX mainly because of its rich UI Library (standard and third-party) and its native data binding function My application will be deployed through local packaging because of the lack of ppapi Java plug-in (chrome will stop using the npapi in chrome 42 and is now in the testing stage), which will prevent chrome users from using webstart, and because of the more "classic" user experience, webstart and automatic updates are on the desktop

The situation is as follows:

>Application starts and checks for updates @ h_ 419_ 5 @ > if you find an update, please download it and put it in the temporary folder @ h_ 419_ 5 @ > when the application closes, write the newly downloaded jar file to the old jar file @ H_ 419_ 5 @ > automatically restart updated applications

However, there are some problems in my mind (initially these two problems, but once I have more words, I can update this problem):

Is it safe to do so? I take a risk in some way. Will the JVM go crazy if I overwrite some jars already used in the application life cycle@ H_ 419_ 5 @ > it's hard for me to find a way to automatically restart my JavaFX application Is it even possible

Thank you for your help

Solution

Check out getdown or updatefx It implements a bootstrap Downloader, checks for updates, downloads them, and launches your application immediately after the update

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>