rt.jar is the core of the JDK. On windows the jar is located someplace like 
C:\Program Files\Java\jdk1.8.0_151\jre\lib and on linux it is someplace like 
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.x86_64/jre/lib. It 
contains all of the standard JDK classes like “java.util.ArrayList”, which is 
evident by the fact that if you open up the jar it has the compiled classes for 
nearly any JDK class you can think of.

The point is, even if it’s no longer supported, it should be in your JDK and 
therefore available for importing.

-Duane

From: Jim Hughes [mailto:jn...@ccri.com]
Sent: Monday, July 30, 2018 4:23 PM
To: geotools-gt2-users@lists.sourceforge.net
Subject: Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

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

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
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to