Skip to main content

Java SE 6u11 - JWS starts my game twice in parallel

1 reply [Last post]
jeromeblouin
Offline
Joined: 2009-01-19

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:

</p>
<p>    var urlEn = "http://freewebs.com/jeromeblouin/incredibuilder/game.jnlp";<br />
    deployJava.launchButtonPNG = "http://www.freewebs.com/jeromeblouin/playIncredibuilder-en.png";<br />
    deployJava.setInstallerType('kernel');<br />
    deployJava.createWebStartLaunchButton(urlEn, '1.4.2');</p>
<p>

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:

<br />
<?xml version="1.0" encoding="utf-8"?></p>
<p>		Incredibuilder Extensions<br />
		Jerome Blouin<br />
		jar ressources</p>
<p>

game.jnlp:

<br />
<?xml version="1.0" encoding="utf-8"?></p>
<p>		Incredibuilder! (c)<br />
		Jerome Blouin - <a href="http://freewebs.com/jeromeblouin" title="http://freewebs.com/jeromeblouin">http://freewebs.com/jeromeblouin</a></p>
<p>		2D Action Puzzle Game</p>
<p>

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!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jeromeblouin
Offline
Joined: 2009-01-19

[b]Is there Sun support people that can investigate that please?[/b]