The applet is this one:
your invoking code looks like this
<applet code="eu.domob.klammgolf.player.PlayApplet"
width="750" height="550"
archive="java/klammgolf.jar, java/minigolf.jar, java/Piccolo.jar , ,
, , ">
<param name="numCourses" value="4" />
<param name="course0"
value="bahnen/bahn_1182668925894638649.jar" />
<param name="course1"
value="bahnen/bahn_1182668933804355172.jar" />
<param name="course2"
value="bahnen/bahn_11826689382141266564.jar" />
<param name="course3"
value="bahnen/bahn_1182668944163310470.jar" />
Du benötigst eine <a href="
http://java.sun.com/">Java-VM</a>, um
Klammgolf
spielen zu können.
</applet>
My typical invoking code looks like this:
<applet class="cmp" code="com.mindprod.wassup.Wassup.class"
archive="wassup.jar" width="540" height="310" alt="Sorry, you need
Java to run this Applet">
</applet>
Note the .class on the code param. Also there should be no embedded
spaces in your archive param, just commas. I would get rid of the
trailing commas.
Thanks for your reply, however, the very same invocation code used to
work with a previous version of my Java code (unfortunatelly I can't
trace down which change made it break), the main difference between
these versions is that I added a Frame which displays what prior was the
Applet's content and another Applet into the same Jar which is not
referenced from this file.
I changed my code according to your suggestions but I still get this
error from within the browser:
load: class eu.domob.klammgolf.player.PlayApplet.class not found.
java.lang.ClassNotFoundException: eu.domob.klammgolf.player.PlayApplet.class
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:168)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:599)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:721)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1757)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:650)
at sun.applet.AppletPanel.run(AppletPanel.java:324)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:271)
at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:158)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:155)
... 9 more
Exception in thread "Thread-5" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(GrayBoxPainter.java:153)
at sun.plugin.AppletViewer.showAppletException(AppletViewer.java:1928)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:655)
at sun.applet.AppletPanel.run(AppletPanel.java:324)
at java.lang.Thread.run(Thread.java:595)
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(GrayBoxPainter.java:153)
at sun.plugin.AppletViewer.showAppletStatus(AppletViewer.java:1861)
at sun.applet.AppletPanel.run(AppletPanel.java:369)
at java.lang.Thread.run(Thread.java:595)
Exception in thread "thread
applet-eu.domob.klammgolf.player.PlayApplet.class"
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(GrayBoxPainter.java:153)
at sun.plugin.AppletViewer.showAppletException(AppletViewer.java:1928)
at sun.applet.AppletPanel.run(AppletPanel.java:533)
at java.lang.Thread.run(Thread.java:595)
I've really no clue at all why something would work inside appletviewer
and not the browser. But the problem must be some difference in how
they resolve or download classes, must it not?
Cheers,
Daniel