Hi Georg,

Which version of Java are you using?  Java 9 and later seem to have tossed the the javax.imageio classes into the java.desktop package(1).

Cheers,

Jim

1. https://docs.oracle.com/javase/9/docs/api/javax/imageio/package-summary.html

On 07/30/2018 03:38 PM, Georg Heiler wrote:
I am specifically referring to the ext part of imageio which as far as I know is unsupported.

Which RT jar are you referring to? Indeed I mean the javaX class.

Best
Georg
Duane Zamrok <[email protected] <mailto:[email protected]>> schrieb am Mo. 30. Juli 2018 um 21:32:

    Are you sure it’s not javax.imageio.ImageIO which is included in
    the rt.jar?

    It’s possible that the class being loaded is somehow referencing
    the wrong class (java vs javax). Perhaps a pluging specification
    (META-INF) file is wrong?

    https://docs.oracle.com/javase/8/docs/api/javax/imageio/ImageIO.html
    is the current javadoc for the very much supported
    javax.imageio.ImageIO class.

    Note:

    If you’re deploying on some older versions of JBOSS, there is a
    sun JDK module defined in the modules folder which calls for
    various packages to be imported from the JDK. By default these
    older application servers will not load imageio from the JDK, and
    you have to add imageio to the list of packages imported to make
    this work.

    -Duane

    *From:* Georg Heiler [mailto:[email protected]
    <mailto:[email protected]>]
    *Sent:* Monday, July 30, 2018 2:34 PM
    *To:* [email protected]
    <mailto:[email protected]>
    *Subject:* [Geotools-gt2-users] no class found for
    java.imageio.ImageIO

    Hi,

    I want to read a GridCoverage2D from an ESRi ArcGrid File using
    geo tools on centos using openjdk 8.

    But I get the error of

    NoClassDefFoundError Could not initialize class java.imageio.ImageIO

    Are there any viable solutions? If I understand the problem
    correctly, imageio-ext does not bundle this class, instead it is
    provided as an extension to the SUN / Oracle JDK (which has ceased
    to be maintained for years).

    Desired state:

    Read ArcGrid Files, and then use a PolygonExtractionProcess.

    Are there possibilities to not require the missing Class?

    Best,

    Georg



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to