Even though I had disabled the temporary internet files setting in the java control panel as shown below, my jnlp application will still not pick up the latest changes. This is a common issue faced by java web start application developers and becomes quite annoying if changes are not getting reflected. javaws -uninstall
is an useful command related to java web start which clears up the cache for you and you need not struggle with deleting the jar files in the %temp%
or other folders.
Command for deleting Java Web Start Cache
javaws -uninstall
You can also add an
update
element in your application's jnlp file for handling the application updates. <?xml version="1.0" encoding="utf-8"?> <jnlp spec="6.0" codebase="." href="application.jnlp"> <information> <title>My Application</title> <vendor>A Developer's Diary</vendor> </information> <security> <all-permissions/> </security> <update check="timeout" policy="always" /> <resources> <jar href="application.jar"/> </resources> <component-desc> </jnlp>
No comments :
Post a Comment