LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: swuth on August 25, 2009, 23:29:43

Title: Refresh Reload in Safari.....
Post by: swuth on August 25, 2009, 23:29:43
Hi,

we use the <param name="separate_jvm" value="true"> on the PC so that people can refresh/reload without any issues. However... this does not work in Safari (Mac or PC) In the eclipse appletloader when I hit reload

I get this.....

Aug 25, 2009 4:27:22 PM com.jme.system.PropertiesGameSettings load
WARNING: Properties file not complete.
org.lwjgl.LWJGLException: Parent.isDisplayable() must be true
   at org.lwjgl.opengl.Display.createWindow(Display.java:303)
   at org.lwjgl.opengl.Display.create(Display.java:839)
   at org.lwjgl.opengl.Display.create(Display.java:767)
   at com.jmex.awt.applet.BaseApplet$1.run(BaseApplet.java:123)
Aug 25, 2009 4:27:22 PM class cube.CubeMobile start()
SEVERE: Exception in game loop
java.lang.NullPointerException
   at com.jme.renderer.lwjgl.LWJGLRenderer.<init>(LWJGLRenderer.java:200)
   at com.jme.system.lwjgl.LWJGLDisplaySystem.initForApplet(LWJGLDisplaySystem.java:688)
   at com.jmex.awt.applet.BaseApplet.gameLoop(BaseApplet.java:156)
   at com.jmex.awt.applet.BaseApplet$1.run(BaseApplet.java:129)
Shutting Down
End Shutting Down

I am shutting everything down but when it tries to reload the applet and run it, the display createWindow is failing miserably. I have tried using system.exit to shut the thing down but that closes down Safari too. Any ideas, I have been pulling my hair out with this one.

CH
Title: Re: Refresh Reload in Safari.....
Post by: Matzon on August 26, 2009, 09:34:09
make sure that parent.isDisplayable is true ? :P
does http://lwjgl.org/applet/ work with reload? - if so, its probably a JME issue
Title: Re: Refresh Reload in Safari.....
Post by: broumbroum on August 26, 2009, 11:45:22
Quote from: swuth on August 25, 2009, 23:29:43
Hi,

we use the <param name="separate_jvm" value="true"> on the PC so that people can refresh/reload without any issues. However... this does not work in Safari (Mac or PC) In the eclipse appletloader when I hit reload(...)
Mac OS runs java 5 on most of their hardware, so new params like one arenot supported by the platform.  That is System.exit will exit safari on os x. moreover, safari does not run the new java plugin, too (both mac and pc).  :-[