Unable to launch JWS app via shortcut.

My game launches successfully when I execute it via the jnlp file but via the desktop shortcut I get the following exception:

java.lang.ClassNotFoundException: buildergame.BuilderGame
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
	at com.sun.javaws.Launcher.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Here is my jnlp file:

<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="file:///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 href="http://java.sun.com/products/autodl/j2se" version="1.4.2+" max-heap-size="128m"/>
		<jar href="lib/game.jar"/>
		<extension href="game_main.jnlp" />
		<property name="lang" value="en" />
		<property name="runFullScreen" value="false" />
	</resources>
	<application-desc main-class="buildergame.BuilderGame"/>
</jnlp>

Any idea why it doesn’t work?

I’ve found a similar reported bug in Java 6 but it doesn’t seem to be the same problem:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6642654

Thanks

Shortcut installation unfortunately does not work with a relative file codebase attribute. It seem that webstart does not cache the application when loaded from a file URL.

Yes, I just figured out that it’s due to a path not found by JWS. In the code above the base path is from my drive D and JWS launches the app from drive C but the path is relative to the root.