Java Webstart intermittant JAR not updating

前端 未结 8 938
眼角桃花
眼角桃花 2020-12-30 07:29

We use java Webstart to deploy a java application on our intranet. The application receives frequent updates. Once in awhile a user will launch the application from their de

相关标签:
8条回答
  • 2020-12-30 07:46

    I've been using the java webstart nextx.jar clone. I traced my not updating JAR issue to the use of the URLConnection.getLastUpdated() method. Since it uses the HEAD method to get the lastUpdated of the filename, this is the reason why sometimes it does not download due to caching of the getLastUpdated(). We decided to use our own method of refreshing our application as webstart is flawed.

    0 讨论(0)
  • 2020-12-30 07:47

    I had this problem just because I didn't let the app opened time enough to complete the update.

    If you have this option: update check="background" in your JNLP, wait some time before close the application in order to allow the update (that is running on background) finish.

    0 讨论(0)
  • 2020-12-30 07:48

    I had the same issues as yours and solved it by doing the following:

    1. Change

      <jar href="OurUpdatedJarName.jar" ...

      to

      <jar href="OurUpdatedJarName-$VERSION.jar" ...

    2. Put $VERSION into the <a href="foo-$VERSION.jnlp">Run</a>

    We automatically update $VERSION for every deployment.

    I know it's an ugly solution but it's one that works for us everytime.

    0 讨论(0)
  • 2020-12-30 07:48

    Might be related to this post, http://www.coderanch.com/t/528570/JNLP-Web-Start/java/Do-jnlp-file-updates-itself

    0 讨论(0)
  • 2020-12-30 07:56

    You might have solved the issue - But jnlp spec="1.0+" - The element is supported only after jnlp spec 6.0+. Probably thats is one of the reasons for your updates failing.

    0 讨论(0)
  • 2020-12-30 07:57

    we have distributed java web start applications over a dozen countries and when we have found that the application wasn't updating correctly it was for a miss-configuration of the county net, or in the network settings of user computer, mostly the proxy. In our central officines in spain java web start allways work ok.

    0 讨论(0)
提交回复
热议问题