Also check out Twelve Monkeys:https://github.com/haraldk/TwelveMonkeys
I had to use it recently on a project to bypass a JFIF parsing error - it 
seemed to bypass the default JPEG decoder. All I had to do was add the 
following jars:

common-lang-3.4.2.jar
common-io-3.4.2.jar
common-image-3.4.2.jar
imageio-core-3.4.2.jar
imageio-metadata-3.4.2.jar
imageio-jpeg-3.4.2.jar
imageio-tiff-3.4.2.jar
That said, I'm not sure if it still uses com.sun.image.codec.* package under 
the hood. Worth investigating I think...



    On Tuesday, December 10, 2019, 7:27:43 AM EST, Jody Garnett 
<jody.garn...@gmail.com> wrote:  
 
 It is not a replacement, it is an extension that adds more functionality.
--Jody Garnett

On Tue, 10 Dec 2019 at 12:59, Marco Peters <marco.pet...@brockmann-consult.de> 
wrote:

Thanks a lot. We have this library already on the class path.
We will check how this can be a replacement.

Thanks
  Marco

-----Ursprüngliche Nachricht-----
Von: Mark Prins <mc.pr...@gmail.com> 
Gesendet: Dienstag, 10. Dezember 2019 11:34
An: geotools-devel@lists.sourceforge.net
Betreff: Re: [Geotools-devel] jai-codec not compatible with OpenJDK (not
directly GeoTools related)

On 10-12-19 10:29, Marco Peters wrote:
> Hi,
> 
> This is a question not directly related to GeoTools but maybe you can 
> help me anyway. If you think this question is not appropriate here, 
> then feel free to ignore or delete it.
> 
> GeoTools is one of the rare projects who is still using jai. We, the 
> ESA SNAP (https://step.esa.int <https://step.esa.int/>) project also 
> still use it.
> 
> Now, we want to migrate to OpenJDK and noticed that JAI uses classes 
> from the com.sun.image.codec.* package which is not any longer 
> available in OpenJDK.
> 
> The usage is for example in the class
com.sun.media.jai.codecimpl.JPEGImageDecoder.So, we can’t read jpeg files
anymore.
> 
> How have you solved this? Are you reading images differently now? Have 
> you patched the JAI library?

there is a replacement from Geosolutions called JAI-ext that was dropped
into geotools some years ago, in any case geotools now runs just fine on
both openjdk 8 and 11, afaik without native jai

see: https://github.com/geosolutions-it/jai-ext



  
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to