[JAI] Where is com.sun.media.jai.codecimpl ?
I'm brand new to JAI and spent yesterday evening trying to get a first test app running, based on Brian Burkhalter's SimpleJAITest (1).
Therefore, I installed the latest JAI-release jai-1_1_3 (took the generic package "Java (no native acceleration)"). I'm working on Linux Fedora.
Some of the calls in SimpleJAITest were deprecated, as javac told me, so I started a rewrite into JAITest, mainly replacing the ScrollingImagePanel by JAIDisplay and the set method on ParameterBlockJAI by setParameter.
After this operation, the class is generated without errors. To compile, I give the commandline:
javac -cp jai-1_1_3/lib/jai_core.jar:jai-1_1_3/lib/jai_codec.jar:. JAITest.java
When running the program like this:
java -cp jai-1_1_3/lib/jai_core.jar:jai-1_1_3/lib/jai_codec.jar:. JAITest test.tif test2.tif
this error is generated:
Error: One factory fails for the operation "tiff"
Occurs in: javax.media.jai.ThreadSafeOperationRegistry
Caused by: java.lang.NoClassDefFoundError: while resolving class: com.sun.media.jai.codecimpl.TIFFImage
Obviously, my problem is one of CLASSPATH settings, right? Please don't shoot me now! Am I just missing or misreferencing the package containing com.sun.media.jai.codecimpl? But where should it be?
I also tried other file formats and testfiles, but without success.
Now, I have some more general questions to this:
A) what is the relationship between jai (1.1.3) and jai_imageio (1.1) ?? does the former require the latter? Is the latter an extension (if so, adding what?)?... I read very confusing things about packages not being officially part of jai, being shifted to other projects etc...
My basic question: what do I have to install in order to read, process and write 16 bit TIFF-images into 8-bit JPEG-images?
B) I tried to install jai_imageio-1_1, but at first sight this didn't change anything... basically, because I didn't trust it to be the right solution: looking at the javadoc of both jai and jai_imageio, I can't find any reference to the package com.sun.media.jai.codecimpl !!
My basic question: if java tells me that com.sun.media.jai.codecimpl.TIFFImage is missing, how can I find out *which* package I should install?
C) and yet another question, assuming jai_imageio-1_1 is required: I notice that it only comes in platform-specific distributions... why is that? Is it not 100% java?
By the way: looking at all the information did not solve my questions, but it did raise my appetite to get this thing running! So please, if someone could prevent me from frustration!?