views:

520

answers:

2

I noticed that the launching of Java applets using deployJava.js seems to have stopped working on some Mac browsers. Safari and FF still work, but Opera and Chrome send the user to Java installation page, as if the plugin was not found.

Take for example this. If you click the launch button in Opera, it sends you to a Java installation page. Any ideas on how to fix this?

A: 

As an alternative, could you offer a plain link to the .jnlp?

From the "Deploying a Java Web Start Application", "If you are not sure whether your end users will have the JavaScript interpreter enabled in their browsers, you can deploy the Java Web Start application directly by creating a link to the JNLP file..."

trashgod
+1  A: 

I ended up checking User-Agent HTTP header for "Opera" and in this case using standard tag. For any other browser I use deploy deployJava.js as currently served by Sun. I know that there are modified versions of deployJava.js (e.g. this one used by Atlassian JIRA) which correctly start the applet in Opera instead of sending the user to Java installation page. But in my case, this approach caused ClassLoader issues (truncated classes) with Opera as I was using applets packaged into several jar files (main + 3rd party jars). had no such problems, even with Opera (which has buggy Java support as Sun claims).

Strangely, I had no issues with standard deployJava.js with Chrome (checked on Linux and Mac Snow Leopard).

elmadir