Hi,
I’ve ported my game to Java SE 6u11 concerning the deployment aspect. I use the deployment toolkit (deployJava.js). Pretty cool and useful feature! The issue with it is that it starts my game twice. Note that the issue happens only when Java isn’t installed and Java 6 gets installed in the process. I’ve used JWS for many years and never experienced this issue before. Here is the javascript code I use:
<script src="http://freewebs.com/jeromeblouin/deployJava.js"></script>
<script>
var urlEn = "http://freewebs.com/jeromeblouin/incredibuilder/game.jnlp";
deployJava.launchButtonPNG = "http://www.freewebs.com/jeromeblouin/playIncredibuilder-en.png";
deployJava.setInstallerType('kernel');
deployJava.createWebStartLaunchButton(urlEn, '1.4.2');
</script>
I host deployJava.js because I needed to have another copy that I modified to start the same game in French and I wanted to encapsulate the deployJava var so I renamed it deployJavaFr in the modified js file.
Here are my web start files:
game_main.jnlp:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://freewebs.com/jeromeblouin/incredibuilder" href="game_main.jnlp">
<information>
<title>Incredibuilder Extensions</title>
<vendor>Jerome Blouin</vendor>
<description>jar ressources</description>
</information>
<security>
<all-permissions/>
</security>
<resources>
<jar href="lib/sui.jar"/>
<jar href="lib/commons-lang-2.3.jar"/>
<extension href="http://slick.cokeandcode.com/demos/slick.jnlp" version="b237"/>
</resources>
<component-desc />
</jnlp>
game.jnlp:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://freewebs.com/jeromeblouin/incredibuilder" href="game.jnlp">
<information>
<title>Incredibuilder! (c)</title>
<vendor>Jerome Blouin - http://freewebs.com/jeromeblouin</vendor>
<homepage href="http://freewebs.com/jeromeblouin"/>
<description>2D Action Puzzle Game</description>
<offline-allowed />
<shortcut>
<desktop />
</shortcut>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4.2+"/>
<jar href="lib/game.jar"/>
<extension href="game_main.jnlp" />
<property name="lang" value="en" />
</resources>
<application-desc main-class="buildergame.BuilderGame"/>
</jnlp>
Try the game to see the issue at http://www.freewebs.com/jeromeblouin/
You’ll need to uninstall all JREs that are 1.4.2 and higher.
Thanks!