Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-08-01 Thread Georg Heiler
Strange. I updated https://stackoverflow.com/questions/51607324/jai-vectorize-operation-missing-from-registry both gradle and maven fail. IntelliJ works (in both cases) fine. But the problem of the fat jar is related. Georg Heiler schrieb am Mi., 1. Aug. 2018 um 23:15 Uhr: > I have create a mav

Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-08-01 Thread Georg Heiler
I have create a maven project - this also fails https://github.com/geoHeil/vectorizePolygons/blob/master/maven/src/main/java/FooJava.java Exception in thread "main" java.util.ServiceConfigurationError: javax.imageio.spi.ImageReaderSpi: Provider it.geosolutions.imageioimpl.plugins.tiff.TIFFImageRe

Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-08-01 Thread Georg Heiler
The exact offensive code line is: at org.geotools.gce.arcgrid.ArcGridReader.createCoverage(ArcGridReader.java:458) so it looks like final RenderedOp asciiCoverage = JAI.create("ImageRead", pbjImageRead, hints); ImageRead is missing. Which dependency would be required for ImageRead to w

Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-07-31 Thread Georg Heiler
Thanks, even when adding the dependencies: https://github.com/geotools/geotools/blob/master/modules/plugin/arcgrid/pom.xml compile group: 'org.geotools', name: 'gt-coverage', version: '18.4' compile group: 'it.geosolutions.imageio-ext', name: 'imageio-ext-arcgrid', version: '1.1.15' compile grou

Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-07-31 Thread Andrea Aime
I think the problem is that jai_imageio is marked as "test", but in order to actually run, it should be marked as compile: [INFO] +- javax.media:jai_imageio:jar:1.1:test The dependency tree I reported is the one for this pom: https://github.com/geotools/geotools/blob/master/modules/plugin/arcgrid

Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-07-31 Thread Georg Heiler
I.e. vectorbin is already on my class path. t.geosolutions.jaiext.vectorbin:jt-vectorbin:1.0.16 +--- it.geosolutions.jaiext.scale:jt-scale:1.0.16 |+--- org.geotools:gt-coverage:18.4 ||+--- org.geotools:gt-arcgrid:18.4 |||\--- compileClasspath ||\--- org.geotools:gt

Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-07-31 Thread Georg Heiler
Which jars did you specify in the POM? Which dependencies would you recommend for maven? Best, Georg Andrea Aime schrieb am Di., 31. Juli 2018 um 09:21 Uhr: > There is no way around it, you have to put the ImageIO jar in the > classpath. > You can find it in the OSGeo repository: > https://down

Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-07-31 Thread Andrea Aime
There is no way around it, you have to put the ImageIO jar in the classpath. You can find it in the OSGeo repository: https://download.osgeo.org/webdav/geotools/javax/media/jai_imageio/ Generally speaking, best to use Maven, GeoTools has many dependecies. In case you cannot, here is a dependency t

Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-07-31 Thread Georg Heiler
I get ClassDefNotFoundError. To better reproduce the problem I created a minimal reproducible example: https://github.com/geoHeil/vectorizePolygons but this no longer shows the original problem. Here I get a couple of steps further, but lack the proper JAI registration. Do you have an Idea to get

Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-07-30 Thread Andrea Aime
On Mon, Jul 30, 2018 at 8:35 PM Georg Heiler wrote: > 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 > "Could not initialize" normally

Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-07-30 Thread Georg Heiler
ld 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 f

Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-07-30 Thread Duane Zamrok
: 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

Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-07-30 Thread Jim Hughes
4 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 cent

Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-07-30 Thread Duane Zamrok
-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

Re: [Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-07-30 Thread Georg Heiler
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, 20

[Geotools-gt2-users] no class found for java.imageio.ImageIO

2018-07-30 Thread Georg Heiler
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