This content has been marked as final. Show 3 replies
Having both a single checker and a double checker, it was only a matter of either getting one of them to switch.
I found that if there are any -Dxxxxx values in the java-vm-args attribute, e.g. -Dswing.grayrect.color=Transparent, then it checks twice. Using 1.7.0_05 on Windows.
Only certain list of properties can be used by untrusted applications (http://docs.oracle.com/javase/tutorial/deployment/doingMoreWithRIA/properties.html).
Anything outside the list means application need to be validated before property is set. And to set the system property or pass new JVM option JVM need to be restarted (as webstart engine does not know whether property can be changed in runtime).
I suspect this is what happening in your case - application essentially starts twice.
Please post full JNLP file and provide details on whether your app is signed, includes signed JNLP file and how do you launch it (using command line with full URL? local copy of JNLP file? click in the browser?).
Here is the full structure of the jnlp, with the specifics of the files / url / main changed.
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://www.myhost:8080/" href="my-jnlp.jnlp">
<description kind="tooltip">Main application ...</description>
<icon href="images_128.jpg" width="128" height="128" size="12235" kind="splash"/>
<icon href="images_64.jpg" width="64" height="64" size="4499"/>
<icon href="images_32.jpg" width="32" height="32" size="1955"/>
<update check="timeout" policy="always"/>
java-vm-args="-Xmx200m -XX:+UseConcMarkSweepGC -Dswing.grayrect.color=Transparent -Djava2d.speedofpainting=UNIMAGINABLE"
<jar href="my-jar.jar" main="true" size="2000000" />
java-vm-args="-Xmx200m -XX:+UseConcMarkSweepGC -Dswing.grayrect.color=Transparent -Dapple.awt.graphics.UseQuartz=true"
For the Java 1.7 resources, I just removed the 2 swing properties. I am not even sure the speedofpainting one is in production. Only saw it on a blog.
I also tried this after the removal on 1.7.0_06 b16 on OS X. There is still doing the double check. b16 will not upgrade due to a change in b18. Was going to wait around to see the next release fixed, but will go to b20 manually if needed.
Edited by: user3055980 on Jul 30, 2012 11:20 AM
All tests except the last on 1.7.0_06 b16 were on Window 7