You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.
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
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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
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.
The text was updated successfully, but these errors were encountered: