Geotools does not work on Java 9, 10, not 11. Please use Java 8. Cheers Andrea
Il sab 13 ott 2018, 17:59 Peter Borissow via GeoTools-GT2-Users < geotools-gt2-users@lists.sourceforge.net> ha scritto: > Hello, > I am dusting off some old code that relies on GeoTools to calculate > distances using the org.geotools.geometry.jts.JTS class. Example: > > DefaultGeographicCRS crs = DefaultGeographicCRS.WGS84; > distance = JTS.orthodromicDistance( > coord, > prevCoord, > crs > ); > > I am building using Java 10. I tried to use some old jars from GeoTools > 14.x but I got a runtime exception: > > "java.lang.IllegalArgumentException: > org.opengis.referencing.datum.DatumFactory is not an ImageIO SPI class" > > After a quick search, it looks like I need to upgrade GeoTools so I > downloaded the latest and greatest bundle from SourceForge and added all > the jars to my project. > > I quickly discovered that the bundle is missing a few dependencies so I > started hunting them down and adding them one-by-one. So far, I have added > the following: > > jts-core-1.16.0 > si-units-java8-0.9 > uom-se-1.0.9 > uom-common-1.0.2 > unit-api-1.0 > > However, I am now stuck with the following error: > java.lang.NoClassDefFoundError: si/uom/quantity/MagnetomotiveForce > > Any suggestions as to where I can find this jar? Or the source code for > the implementation of the MagnetomotiveForce interface? > > Also, would it be possible to include all the requisite jars in future > releases? > > Thanks in advance, > Peter > _______________________________________________ > 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