Using JAWT CALayer with QT

Jessica Finley jfinley at tech4learning.com
Thu May 17 14:55:48 PDT 2012


Hiya folks,

It is my understanding that we are to use CALayer based embedding now instead of NSView based embedding.  Can someone explain to me how to do so?  Primarily, I am interested in playing a QT movie.  I've been looking at the JAWTExample project located here:

https://developer.apple.com/library/mac/#samplecode/JAWTExample/Introduction/Intro.html#//apple_ref/doc/uid/DTS10000683-Intro-DontLinkElementID_2

Which works beautifully in Java 6, but no so much in Java 7.  When run in Java 7 (after some finagling to launch the jar outside of its app bundle so it will run in Java 7), I get the following error when trying to draw the included QT movie:
     [java] JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM

I'm not really sure why this doesn't work in Java 7, since it is using CALayer embedding, as it should… I think.  

Thanks!
-Jess


More information about the macosx-port-dev mailing list