Women in Technology

Hear us Roar



Article:
  QTJ Audio
Subject:   Installing QuickTime for Java
Date:   2004-01-03 19:01:16
From:   anonymous2
I have what may be a really stupid question, but I just switched to a Mac OS X 10.3 PowerBook from Windows and it already had QuickTime installed, so when I download QuickTime 6.5 to try to install QuickTime for Java it won't let me select Custom install (to add the qtjava.zip), it only allows me to 'Upgrade' which doesn't really do anything. I cannot seem to uninstall QuickTime, so I'm not sure how I'm supposed to get the new qtjava.zip onto my machine.


Thanks in advance for any help you could offer,
Sean

Full Threads Newest First

Showing messages 1 through 3 of 3.

  • Chris Adamson photo Installing QuickTime for Java
    2004-01-05 07:10:12  Chris Adamson | O'Reilly AuthorO'Reilly Blogger [View]

    Mac OS X already has QuickTime Java. Take a look at /System/Library/Java/Extensions and you should see QTJSupport.jar and QTJava.zip.

    --Chris
    • Installing QuickTime for Java
      2004-01-05 15:34:05  anonymous2 [View]

      Chris,

      Thanks, but that also appears to be QTJ 6.1 and not the 6.5 I was expecting (see the error message below). I've followed the instructions from the ADC and downloaded the QuickTime 6.5 dmg, but the installer only lets me 'Upgrade' and not perform a custom install to add the QuickTime for Java extensions. I've done some Googling and it appears that QuickTime is practically integrated into the OS, so I cannot simply remove it and do a fresh install. Do you know of another way to get just the QuickTime for Java content?

      Thanks,
      Sean

      ava -classpath /System/Library/Java/Extensions/QTJava.zip:. QTButtonDemo
      Exception in thread "main" java.lang.ExceptionInInitializerError
      at QTButtonDemo.<init>(QTButtonDemo.java:68)
      at QTButtonDemo.main(QTButtonDemo.java:37)
      Caused by: quicktime.QTRuntimeException[QTJava:6.1.0g1]Unsupported on Mac OS X and Java 1.4 and higher.,QT.vers:6508000
      at quicktime.app.image.ImagePresenter.<clinit>(ImagePresenter.java:42)
      ... 2 more
      • Chris Adamson photo Installing QuickTime for Java
        2004-01-05 18:06:59  Chris Adamson | O'Reilly AuthorO'Reilly Blogger [View]

        Looking at the stack trace, you *do* have QTJ 6.1 (the new one) and QT 6.5. The problem is that your code is using a call to a class - quicktime.app.image.ImagePresenter - that doesn't work in the new QTJ.

        When Apple moved their Java implementation from Carbon to Cocoa, they broke a lot of QTJ. They decided to re-implement a smaller subset in QTJ 6.1, deprecating the rest. Everything in quicktime.app.image is deprecated. See my article "The Return of the Blue Q" ( http://www.onjava.com/pub/a/onjava/2003/10/29/qtj-returns.html )

        That said, it works on Windows, and it works on Java 1.3.1 on Mac OS X. It's just not going to work on 1.4.1 on Mac.

        --Chris