JOGL Applets

Hello!
I’ve put the gears applet on a server and when I tried to run it I’ve got this error:

Exception in thread “AWT-EventQueue-7” java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file sun/java2d/opengl/OGLUtilities
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.opengl.impl.Java2D$2.run(Java2D.java:368)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.opengl.impl.Java2D.getOGLUtilitiesIntField(Java2D.java:365)
at com.sun.opengl.impl.Java2D.(Java2D.java:70)
at com.sun.opengl.impl.GLContextImpl.(GLContextImpl.java:75)
at com.sun.opengl.impl.windows.WindowsGLContext.(WindowsGLContext.java:77)
at com.sun.opengl.impl.windows.WindowsGLContext.(WindowsGLContext.java:71)
at com.sun.opengl.impl.windows.WindowsOnscreenGLContext.(WindowsOnscreenGLContext.java:52)
at com.sun.opengl.impl.windows.WindowsOnscreenGLDrawable.createContext(WindowsOnscreenGLDrawable.java:88)
at javax.media.opengl.GLCanvas.(GLCanvas.java:118)
at javax.media.opengl.GLCanvas.(GLCanvas.java:82)
at javax.media.opengl.GLCanvas.(GLCanvas.java:75)
at demos.applets.GearsApplet.init(GearsApplet.java:19)
at com.sun.opengl.util.JOGLAppletLauncher.startSubApplet(JOGLAppletLauncher.java:711)
at com.sun.opengl.util.JOGLAppletLauncher.access$700(JOGLAppletLauncher.java:117)
at com.sun.opengl.util.JOGLAppletLauncher$2.run(JOGLAppletLauncher.java:675)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

then I’ve put the applet on a server installed on my computer and the applet was working fine. Then I tried on another server and it also worked.
My question is: What could go wrong with the first server?
Thank you!

i had this problem myself and it took me one day to find out that the mine type for the .jar files was not proper set.
use this applet (http://mindprod.com/jgloss/mime.html) to find out if your webserver uses special character encoding for your jogl.jar. your webserver docs will explain how to change the mime type…