Java Update 1 kills QuickTime for Java

Apple has released (via Software Update) “Java for Mac OS X 10.5 Update 1”, which installs Java 1.6.0_05 (although it does not make it the default version of Java for the machine.

bash-3.2$ /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13-120)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_05-b13-52, mixed mode)

The software update is installed only on 64-bit capable Macs. To switch it to the default Java install you need to use the /Applications/Utilities/Java Preferences application (which states when you select it that “Java SE 6 is only available for Java applets in 64-bit capable browsers. J2SE 5.0 will be used in 32-bit-only browsers, including Safari”)

Discussions indicate that compiled JNI libraries don’t look like they currently work, and neither do QuickTime for Java applications:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java quicktime.QTSession
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:997)
at quicktime.QTSession.(QTSession.java:92)
Caused by: java.lang.UnsatisfiedLinkError: /System/Library/Java/Extensions/libQTJNative.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1715)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at quicktime.QTSession$1.run(QTSession.java:94)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:300)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:210)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:195)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:187)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Exception in thread "main" java.lang.NoSuchMethodError: main

This is not surprising given that QuickTime for Java is based on 32-bit Carbon libraries, and has been effectively in “maintenance mode” for a while. Unfortunately someone manages to get the JNI (or JNA?) code working it’s going to be difficult to work around the problem using QTKit.

In the meantime, QuickTime for Java still muddles along in Java 5. Eclipse Ganymede also seems to launch ok, but I haven’t done anything extensive with it.

Choking on Apple’s Time Capsule

So, the first Time Capsule backup over Gigabit Ethernet took about 8 hours to backup an 80 Gb drive. So, the 160Gb drive should take 16 hours? So far it’s  been over 24 hours and we’re stuck at 132.07 of 145.81Gb (There are 2,007,881 files to back up!),  and not  moving. The weird thing is that MenuMeters shows around 600KB/s of outgoing traffic, presumably to the Time Capsule as everything else  has  been quit. At that transfer rate I’m estimating 8 hours left (time for  bed!), but it’s hard to tell as the progress bar doesn’t seem to be moving. Edit- Something like 32-36 hours all up I think.