Java Advanced Imaging (JAI)...ever again??

I have a lot of frustration to get off my chest around this issue. This issue has been driving me crazy for over a year, but since I can't say anything nice I'll be brief and just state my questions:

1. Why isn't there support for JAI in 10.4 after all this time?
2. Why is it so hard to find an area to discuss Java issues on this site?

I thought Apple cared about Java now?

Powerbook G4, Mac OS X (10.4.4)

Posted on Mar 2, 2006 12:31 PM

Reply
5 replies

Mar 3, 2006 11:41 AM in response to Raj Singh

Hello Raj,

According to this:

http://developer.apple.com/java/faq/apis.html

J3D and JAI are supposed to be included in Tiger's Java.

I don't think I worked with JAI yet but J3D seems to be there - at least it works for me 😉

There was a separate installer for Panther, I remember having to add it to make J3D work.

There are Java topics here, perhaps not too many... Just post your questions and someone will respond!

Mar 4, 2006 12:09 AM in response to miu

Thanks for that link. I don't know why I never found that page. I always saw: http://www.apple.com/downloads/macosx/apple/java3dandjavaadvancedimagingupdate.h tml, that says JAI is not compatible with 10.4.

I was also confused by the fact that digging around in /System/Library/Frameworks/JavaVM.framework/ didn't reveal any of the files I expected to see (for either 1.4 or 1.5), like jai_core.jar or jai_codec.jar, but I just found them in /System/Library/Java/Extensions

Powerbook G4 Mac OS X (10.4.5)

Mar 4, 2006 9:54 AM in response to Raj Singh

You're right, Raj, that page had me confused too, for a while...

I actually tried to run my J3D project after upgrading to Tiger and to my surprise it worked! Only later I found the explanation why it should.

There are many Java/Mac topics that should be better explained/demystified, best by Apple I guess. Numerous questions I saw in several forums show a lot confusion - Java 5, Java on Intel, WebStart, JAVA_HOME...

Especially differences from Sun's "reference" implementations confuse people coming from other platforms expecting a familiar environment.

Mar 8, 2006 3:42 PM in response to miu

I've been trying to get a web application (RSNA MIRC for radiology teaching files) to work that utilizes Java 5 and JAI on 10.4. I can verify that I'm using Java 1.5, but I get an error that looks like the JAI is either not present or not functional:

Any ideas? Does the JAI have to be manually activated (if it's included in OS 10.4)? Here's a thread on the problems others have been having...

http://forums.rsna.org/showthread.php?s=&threadid=699

-FJW

====================

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception


root cause

java.lang.NoClassDefFoundError: com/sun/media/imageio/stream/StreamSegmentMapper
org.dcm4cheri.imageio.plugins.DcmImageReaderSpi.canDecodeInput(DcmImageReaderSpi .java:111)
javax.imageio.ImageIO$CanDecodeInputFilter.filter(ImageIO.java:526)
javax.imageio.spi.FilterIterator.advance(ServiceRegistry.java:793)
javax.imageio.spi.FilterIterator.(ServiceRegistry.java:787)
javax.imageio.spi.ServiceRegistry.getServiceProviders(ServiceRegistry.java:491)
javax.imageio.ImageIO.getImageReaders(ImageIO.java:605)
org.rsna.mircsite.util.MircImage.getImageReader(MircImage.java:111)
org.rsna.mircsite.util.MircImage.(MircImage.java:91)
org.rsna.mircsite.fileservice.FileService.getIcon(FileService.java:649)
org.rsna.mircsite.fileservice.FileService.saveFile(FileService.java:561)
org.rsna.mircsite.fileservice.FileService.saveFile(FileService.java:524)
org.rsna.mircsite.fileservice.FileService.add(FileService.java:448)
org.rsna.mircsite.fileservice.FileService.doPost(FileService.java:252)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.

Mar 9, 2006 7:23 PM in response to Frank Welte

I just tested a simple JAI applet from here:

http://access1.sun.com/techarticles/ImagingApps/JImage.html

and it worked fine on Intel Tiger. I can see in my Eclipse class browser that jai_core.jar and jai.codec.jar are included in Mac OS Java 5 System Library.

However, package com.sun.media.imageio.* that causes your trouble is indeed not present.

I'm not a JAI expert but a glimpse at this:

http://java.sun.com/products/java-media/jai/

http://java.sun.com/products/java-media/jai/forDevelopers/jai-imageio-1_1-alpha- docs/index.html

indicates that it belongs to Image I/O "product" which is not a part of JAI. Apparently there are binary components included but (at least) some of the plug-ins could work as pure Java.

Perhaps you can try to download this from Sun and and plug those jars into your classpath?

iMac Core Duo 1.83 GHz Mac OS X (10.4.5) 1GB RAM

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Java Advanced Imaging (JAI)...ever again??

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.