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:georg.kf.hei...@gmail.com]
Sent: Monday, July 30, 2018 2:34 PM
To: geotools-gt2-users@lists.sourceforge.net
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
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users