Thanks for the response and the reminder that they were dropped from the spec.

I did the ports of the Sun J2SE 1.4.1 and 1.5.0 for UnixWare and OpenServer in the past. The jfc/Java2D demo was always a good exercise for graphics and thread control. While the Java2D demo is not in openJDK6, I grabbed a Java2Demo.jar file from the Oracle JDK6 and it ran on the OpenJDK6

    openjdk version "1.6.0_32"
    OpenJDK Runtime Environment (build 1.6.0_32-b27)
    OpenJDK Client VM (build 20.0-b12, mixed mode)

I have checked the OpenJDK6 source and the codec classes are there. The missing class(es) showed up when attempting to run the Java2Demo.jar with the OpenJDK 7u6.

-- John


On 6/26/2013 7:09 PM, Phil Race wrote:
I do not know in which JDK 6 it was you saw these files but I doubt it was an OpenJDK.
These files are closed source, so could not be in OpenJDK and in any case
are not part of the Java SE spec.
If you need these classes you will need to use an Oracle JDK download, however their use has been discouraged since Image I/O was added in JDK 1.4 over 10 years ago.

-phil.

On 6/26/2013 3:05 PM, John Wolfe wrote:
I was evaluating the OpenJDK 7 on a FreeBSD 9.1 system and was surprised to discover that all the JPEG encoded/decode classes in:

    com/sun/image/codec/jpeg
    sun/awt/image/codec

are absent from the rt.jar. These missing 12 classes are part of the OpenJDK 6 source release.

What is the reasoning for their absence? This seems to break forward compatibility?

-- John Wolfe        Xinuos, Inc.





Reply via email to