I have tried to solve my issue on my own but have been running into dead ends. Now my girlfriend is getting angry at the constant sound of my head hitting the keyboard in frustration. My issue is that I am trying to get my applet I "wrote" (Copy and paste) using SimpleJMEApplet to run in a browser. I ran into issues with JME 1.0 and have updated to JME 2.0. My html is as follows:
In IE 7 it freezes at switching applet and throws this error.
java.lang.NullPointerException: null pData
In firefox 3 (windows xp) it freezes
Exception in thread "Thread-6" java.lang.NullPointerException
at sun.plugin.util.AnimationPanel.createTranslucentImage(Unknown Source)
at sun.plugin.util.AnimationPanel.createGradientShapeImage(Unknown Source)
at sun.plugin.util.AnimationPanel.initBackground(Unknown Source)
at sun.plugin.util.AnimationPanel.preloadResources(Unknown Source)
at sun.plugin.util.AnimationPanel.doPaint(Unknown Source)
at sun.plugin.util.AnimationPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Nov 30, 2008 11:29:23 AM com.jme.system.lwjgl.LWJGLDisplaySystem <init>
INFO: LWJGL Display System created.
In Firefox 3 (Ubuntu) I only get INFO: LWJGL Display System created. in the java console
I usually just have to click once inside the applet area to actually activate the applet (after it has been finished loading and "INFO: LWJGL Display System created." is displayed.)
If you're okay with using the latest JVM for some time - use jnlp to deploy your applets, it's much more reliable than using jme's current applets with lwjgl's deployment mechanism - lwjgl_util_applet.jar (LWJGL updated their applet deployment style, but jme's applets are attempting to do it old-style, which is why you need to click the applet, and why on some machines it doesn't work).
With a JNLP, you can specify the natives using java's new built-in features (unless you want to support older JVMs, using things already in the new JVM seems like a good idea to me).
If you want to deploy with lwjgl's new applets, it should work with the applets discussed in this thread:
yes it's properly the best way to deliver JME-Apps with Webstart. So i will think about it. It would be nice to deliver apps directly and built-in in the browser window. But this could be nearly unimportant.
It would be nice to deliver apps directly and built-in in the browser window
Actually, that was sort of what I was talking about - starting from Java 6 update 10, you can deploy applets using JNLP.
The problem with deploying applets is that there used to be no built in way to specify natives, and you needed a custom loader to do that. With the JNLP deployment style for applets, you can specify them using built-in mechanisms, thus solving all problems with custom loaders.