Login  Register

Re: JOGL applets on Mac OS X?

Posted by Ralph Elliott on Aug 17, 2011; 7:48pm
URL: https://forum.jogamp.org/JOGL-applets-on-Mac-OS-X-tp3262071p3262745.html

Hi Wade,

I'm sticking with Safari 5.0.5 on my primary system to avoid this issue.  But yesterday I set up a temporary test system with Safari 5.1.

The Safari 5.1 behaviour -- as I found it, on this one occasion, at any rate -- is slightly different to the Chrome/Firefox behaviour, although they all use the out-of-process plugin for applets regardless of the Java Preferences setting:

- On Chrome and Firefox, I would describe the behaviour as "everything but the rendering works", i.e.:
-- the applet loads in a separate process,
-- the console and menu-bar coffee-cup icon for that process's JVM appears,
-- if the applet is prodded into action by the the web page's javascript GUI
  then the console (and js gui) behave exactly as if the applet were running,
-- BUT throughout all this the applet panel is continuously blank (white background), as you say.

- On Safari 5.1, however:
-- the out-of-process JVM starts up
  (its console and coffee-cup menu-bar icon appears),
-- it sniffs around briefly (just for a second or two),
-- then it apparently decides that it can't proceed, and
-- it exits (the console and menu-bar coffee-cup icon disappear).
While all this happens, and subsequently, the applet panel appears as blank (but grey rather than white), except maybe for a Java coffee-cup icon in the bottom left corner.  Obviously, because the applet process's JVM has shut-down, the applet is not actually running at all -- so if one tries to prod it into action via the javascript GUI nothing happens.

Btw, you mention the JNLPAppletLauncher.  I may be wrong but, as I understand it, there's no need to use JNLPAppletLauncher once one switches to the out-of-process plugin, since that plugin supports proper JNLP applet launching, i.e. applet launching via a genuine JNLP file using the "jnlp_href" applet parameter -- as described on the Java deployment pages:

    http://download.oracle.com/javase/6/docs/technotes/guides/jweb/index.html
    http://download.oracle.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html
    etc.

-Ralph


--