JNLP is not updated, although there is update = "always" policy = "always"

My JNLP file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="http://fuuu.sk/" href="launch.jnlp" spec="1.0+">
<information>
    <title>PocketBrain</title>
    <vendor>zatokar</vendor>
    <homepage href="www.fuuu.sk"/>
    <description>PocketBrain</description>
    <description kind="short">PocketBrain</description>
</information>
<update check="always" policy="always"/>
<security>
  <all-permissions/>
</security>
<resources>
    <j2se version="1.7+"/>
    <jar href="PocketBrain.jar" main="true"/>
<jar href="lib/sqlite-jdbc-3.7.2.jar"/>
<jar href="lib/eclipselink.jar"/>
<jar href="lib/javax.persistence_2.1.0.v201304241213.jar"/>
<jar href="lib/jcalendar-1.4.jar"/>
<extension href="jnlpcomponent1.jnlp"/>
</resources>
<application-desc main-class="model.BrainInPocket">
</application-desc>
</jnlp>

      

And as you can see, there is an update = "always policy =" always "as it is written in the Java Web Start Help. But it doesn't help, showing the same error even if removed (and I'm sure it should show another error) .Help only remove cached files in java control panel. WHY it doesn't update automatically? I used IE 7 for the test because in other browsers it downloads the jnlp file automatically.

0


source to share


1 answer


1). Change (meaning switch) order of <update> and <security> tags. For the analysis of your JNLP file using janela .

2). Return your jars to your applet tag on every build / deployment. This will reboot.

<jar href="lib/sqlite-jdbc-3.7.2.jar"/> -> <jar href="lib/sqlite-jdbc-3.7.3.jar"/>

I know this is cumbersome for external libraries ...



3). You can also try the version tag :

Rename the jar files to: sqlite-jdbc__V3.7.2.jar

<jar href="lib/sqlite-jdbc.jar" version="3.7.2"/>

+2


source







All Articles