Gabriella, OS X ships with a JAI implementation that's inserted into the default system classpath. This JAI version has traditionally caused me issues and the first thing I do on a new Mac is move it aside. If you'd wish to try this:
cd /System/Library/Java/Extensions/ sudo mkdir DISABLED sudo mv *jai* DISABLED On Mon, Oct 5, 2015 at 2:28 AM, Jody Garnett <jody.garn...@gmail.com> wrote: > 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 <gabriella.tu...@niwa.co.nz> > 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 >> GeoTools-GT2-Users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > GeoTools-GT2-Users mailing list > GeoTools-GT2-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > -- * Tom Kunicki* | Software Engineer *w:* 608 695 4251 *e:* tom.kuni...@weather.com
------------------------------------------------------------------------------
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users