Posted by: Morten Nobel-Jørgensen | May 21, 2009

Java 6 applets is coming to Leopard


Java 6 applets is coming to Leopard
The problem
java_propertiesWhen Mac OS X version 10.5 “Leopard” was launched in October 2007, Java 6 finally reached the OS X platform (for 64-bit capable Intel-based Macs)– at that time Java 6 was almost a year old. But Apple only released a 64 bit version of Java 6 – while this seems like a logical step (Leopard is a 64 bit OS) allowing running Java for both servers, applications and Java WebStart, there was one drawback: Applet support.
All major browsers (Firefox and Safari) run in 32 bit mode on OS X, and since Java is started in the browser process, only the 32 bit Java 1.5 can be used.
This means that while you are able to develop a Java 6 Applet on OS X (since the Appletviewer has no problem running in 64 bit mode) you can’t run a webpage with a Java 6 applet. Absurd but true.

The upcoming solution
As usual Apple haven’t told anything about future support for Java 6 applets, but finally the problem seems to be solved in a future Java update. Matt Drance has announced the new Java for Mac OS X v10.5 Update 4 Developer Preview ( http://lists.apple.com/archives/java-dev/2009/Apr/msg00221.html ). Java 6 is updated to the current version 1.6.0_13, but still only available in a 64 bit version. But the new build includes a new out-of-process Java applet plug-in, that allows you to use a Applet (running in its own 64 bit process) in a 32 bit browser (Safari or Firefox). This is basically the same thing Sun introduced in 1.6.0_10.
With this update you should also be able to run JavaFX applets inside your browser. JavaFX is currently is only supported for Java WebStart on OS X.

If you want to play with this Developer preview, you can download it at ( http://connect.apple.com/ ). Remember to read the release notes before installing the preview.

Note that this post is imported from my old blog. The post contained the following comments:

Comments:
Hi, Are you sure this “out-of-process Java applet plug-in” is included in Java Update 4? I’m using Update 4 and Safari 4.0.2 but I can’t get Java 1.6 to work with an applet.
Posted by Danilo Tuler on July 10, 2009 at 11:40 PM CEST #
The “out-of-process Java applet plug-in” was only in the beta version. For some reason they removed it from the final 😦 This means still no Java 6 applet on Leopard. (I have a feeling that they might have moved the feature to Snow Leopard?).
Posted by Morten Nobel-Jørgensen on July 11, 2009 at 10:50 AM CEST #
I believe so. Safari will be 64-bit. I installed Beta Update 5, but no sign of a new plugin.
Posted by Danilo Tuler on July 13, 2009 at 07:30 PM CEST #
It seems like Snow Leopard will contain a 32 bit version of Java 6 🙂 http://java.dzone.com/news/32-bit-java-6-mac-os-x-snow
Posted by Morten Nobel-Jørgensen on August 25, 2009 at 08:29 PM CEST #
Advertisements

Responses

  1. Subject: problem of deployment of java applet in iis 7.0

    Hi,

    we have created Simple html page and use java applet with activex control. I found some problem. I can successfully run this sample from the project folder but while I am uploading this on IIS web server 7.0 on Windows server 2008 i am getting Some error in Jre console.

    Can’t open URL for reading. Stack trace for diagnostics (no exception thrown): java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Unknown Source) at com.genlogic.GlgDefaultErrorHandler.Error(GlgGlobal.java:661) at com.genlogic.GlgGlobal.ErrorHandler(GlgGlobal.java:627) at com.genlogic.GlgStream.stOpenStream(GlgStream.java:268) at com.genlogic.GlgObject.obLoad(GlgObject.java:3468) at com.genlogic.GlgObject.LoadObject(GlgObject.java:4924) at com.genlogic.GlgObject.LoadWidget(GlgObject.java:4949) at com.genlogic.GlgBeanComponent.load_viewport(GlgBeanComponent.java:631) at com.genlogic.GlgBeanComponent.load_drawing(GlgBeanComponent.java:684) at com.genlogic.GlgBeanComponent.Start(GlgBeanComponent.java:463) at com.genlogic.GlgBeanComponent$GlgStartStop.run(GlgBeanComponent.java:389) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(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) Null drawing. Stack trace for diagnostics (no exception thrown): java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Unknown Source) at com.genlogic.GlgDefaultErrorHandler.Error(GlgGlobal.java:661) at com.genlogic.GlgGlobal.ErrorHandler(GlgGlobal.java:627) at com.genlogic.GlgObject.ExtractWidget(GlgObject.java:4972) at com.genlogic.GlgObject.LoadWidget(GlgObject.java:4949) at com.genlogic.GlgBeanComponent.load_viewport(GlgBeanComponent.java:631) at com.genlogic.GlgBeanComponent.load_drawing(GlgBeanComponent.java:684) at com.genlogic.GlgBeanComponent.Start(GlgBeanComponent.java:463) at com.genlogic.GlgBeanComponent$GlgStartStop.run(GlgBeanComponent.java:389) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(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)

    while I am uploading this project folder on IIS Web server 7.0 on Windows Vista 2008 I am getting above error. And while I am uploading this project folder on IIS Web server 6.0 on Windows XP then it runs successfully without any error. I have also created another sample applet without using Activex Control. In applet.htm file you can find one link by clicking on that you can view simple applet which runs successfully on each version of IIS Web server and any OS. So, I am very much confuse about this. Can you please tell me if any configuration I am missing on web server for activx Control. Can you please help me in deploying glg sample applet on IIS 7.0.

    Thanks in Advance.

    • I don’t this this question is relevant for this topic. Try asking it in the forum on java.sun.com.
      My short answer is that you should not use ActiveX, since I believe that it is an outdated technology.
      Kind regards,
      Morten


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: