I have not run into a problem yet, take a look at your eclipse class path.
If it is an OSGi app for example you need extra command line options to
allow it to see the JAI jars included in the SDK. Even for a normal Java
app you may get out of sync when updating the version of Java on your
system, double check the Java Runtime listed in eclipse and confirm the
correct jars are listed.

--
Jody Garnett

On 1 October 2015 at 15:56, Gabriella Turek <[email protected]>
wrote:

> I am trying to update my geotools libraries from 13.2 to 14.0 in order to
> take advantage of the extended ARC Grid raster support.
> However I am now running into some issues which I never had before:
>
> java.lang.NoClassDefFoundError: Could not initialize class
> javax.media.jai.JAI
>         at
> org.geotools.gce.arcgrid.ArcGridReader.createCoverage(ArcGridReader.java:48
> 7)
>         at
> org.geotools.gce.arcgrid.ArcGridReader.read(ArcGridReader.java:398)
>         at
> riskscape.util.GeoToolsUtils.readAsciiGridFile(GeoToolsUtils.java:369)
>         at
> riskscape.util.GeoToolsUtilsTest.testReadStandardFile(GeoToolsUtilsTest.jav
> a:598)
> …..
>
>
> The jai jars are there, but the Java SDK also has jai jars. Removing the
> geotool ones, I still get the same error, hum.
> I am using Eclipse. This was not happening with 13.2
> Gaby
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to