I deployed the application using java web start. It is working fine. I have attached my jnlp file. Whenever the desktop shortcut icon is clicked, it checks for the latest updates and downloads them before launching the application. But I want this update to happen in the background. Therefore, I make the following changes :. Now the application starts immediately after clicking on the shortcut. But I ran into the following problem:
After launching the application, the web start launches background update threads. It checks for any update and then downloads the updated jar. The problem is that it updates the cache entry and does not ask the user to install the update. This causes my application to throw java.lang.SecurityException. But after restarting the application, everything works fine.
I really want to notify the user before updating the cache entries. I tried all the options in jnlp (prompt-run, prompt-update). But nothing works according to my expectations. I want to check if any update is available on the server or not, and if available, ask the user to download the user. The download will take place in the background, and after its completion it will notify the user. Then the user should request the installation of updates.
Please let me know if someone has achieved something similar. I would be grateful for any help. Thank..
source
share