My game launches successfully when I execute it via the jnlp file but via the desktop shortcut I get the following exception:
1 2 3 4 5 6 7 8 9 10
| 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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <?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: <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=6642654Thanks