J (banana) wrote in java_dev,

WebStart/JNLP question

I have set up some WebStart apps which work fine except for one thing: they never check for updates, despite me setting the relevant options (as far as I can tell).

The shortcuts that are installed for the user have the option -localfile. This isn't documented anywhere I can find, but it seems specifically to prevent WebStart from checking for updates. If I remove this, there's an update check every time.

Any suggestions?

I'm reading JNLP docs here: http://docs.oracle.com/javase/6/docs/technotes/guides/javaws/developersguide/syntax.html
An example JNLP file is here: http://j_banana.users.sourceforge.net/ws/retest/retest.jnlp - right click and save to prevent the app installing and starting up.

Edit: I think I found the problem. Looks like <shortcut online='false'> causes -localfile and <shortcut online='true'> doesn't. I was assuming that that attribute meant "only run on line", but looks like it doesn't. The JNLP docs linked above doesn't seem very clear on this.
  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment