Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

JAI Compatibility issue with Java 7 #46

Open
agueganno opened this issue Jul 5, 2013 · 0 comments
Open

JAI Compatibility issue with Java 7 #46

agueganno opened this issue Jul 5, 2013 · 0 comments
Labels

Comments

@agueganno
Copy link
Contributor

We're having a quite important problem with JAI when trying to execute orbisgis-server with Java7. JAI is dependant on some API from com.sun.* that has disappeared with Java 7. If you have a look in the JAI
com.sun.media.jai.codecimpl.JPEGImageEncoder
class you can see that it is dependant upon
com.sun.image.codec.jpeg.JPEGEncodeParam

This will lead to problem because according to
http://www.oracle.com/technetwork/java/javase/compatibility-417013.html

we can see that:

Synopsis: The Non-standard com.sun.image.jpeg.codec Package is Retired
Description: The com.sun.image.codec.jpeg package was added in JDK 1.2 (Dec 1998) as a non-standard way of controlling the loading and saving of JPEG format image files. This package was never part of the platform specification and it has been removed from the Java SE 7 release. The Java Image I/O API was added to the JDK 1.4 release as a standard API and eliminated the need for the com.sun.image.jpeg.codec package.
Nature of Incompatibility: binary and source

The problem here is that JAI uses this removed classes to perform operations on JPEG files...

One solution is to use ImageIO rather than JAI for JPEG files. We already did it with @mjothy, it's really simple. This issue is not limited to that problem, though : I think we may wonder if the use of JAI, considering these kind of issues, is still justified.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant