JOGLAppletLauncher

Hi, i am fairly new to jogl and i have been trying to get my Jogl applet working with the appletlauncher. It works with the demo jar, but when i use my own jar i get the following exception:

sun.plugin.cache.DownloadException
	at sun.plugin.cache.CachedJarLoader.load(Unknown Source)
	at sun.plugin.cache.JarCache.get(Unknown Source)
	at sun.plugin.cache.JarCacheUtil.preload(Unknown Source)
	at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
	at sun.applet.AppletPanel.runLoader(Unknown Source)
	at sun.applet.AppletPanel.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

And the applet says:

Error: Start Failed: class not found: TheHiveApplet

Am i suspose to have something in the jar? Or do something to the jar? Any help or ideas would be extremely helpful.

-Solar

Did you add your own jar to the list of jars downloaded in your applet tag? Did you try taking apart the GearsApplet example and putting it back together on your own web server?

Could you post a pointer to your .html file?

Yes sorry, i should of posted a link.

here - http://overflowd.com/jogl/jogl.html -

I hope you can help, i’m quite new and quite stuck at the moment.

And yes i added my own jar.

-Solar

You need to copy all of the jogl*.jar files to your own web server. The codebase you have specified for your applet is pointing to the current JSR-231 builds, which of course don’t contain your jar file. This is described in the javadoc for the JOGLAppletLauncher.

Well thank you very much. I knew it was something stupid i was doing. ::slight_smile:

Now off to fix my errors :o

EDIT: With this appletlauncher the applet tells me that i don’t have jogl installed and that it has switched to the java implementation. Isn’t this appletlaucher suspose to fix that?

Heres a link again. - Http://overflowd.com/jogl/jogl.html -

Sorry to bother you all again.

-Solar

The problem seems to be that your game is using the JOGL 1.1.1 APIs but the JOGLAppletLauncher is in the JSR-231 bundle. The public APIs have changed quite a bit during the JSR, although it’s a fairly simple transformation to go from the old APIs to the current ones. The current javadoc is on the JOGL home page.

Ok will do, Thank you very much again :slight_smile:

-Solar