java - Not able to locate FactoryRegistry class when using GeoTools -


i trying load , parse shapefile using geotools library. however, when try load file following call resulting dependency failure org.geotools.factory.factoryregistry:

datastore newstore = datastorefinder.getdatastore(connect); 

error:

org/geotools/factory/factoryregistry java.lang.noclassdeffounderror: org/geotools/factory/factoryregistry 

i have included following dependencies in gradle:

compile files ('libs/geotools/gt-opengis-14.2.jar') compile files ('libs/geotools/gt-api-14.2.jar') compile files ('libs/geotools/gt-shapefile-14.2.jar') compile files ('libs/geotools/gt-cql-14.2.jar') compile files ('libs/geotools/gt-main-14.2.jar') compile files ('libs/geotools/gt-referencing-14.2.jar') compile files ('libs/geotools/gt-epsg-hsql-14.2.jar') 

i not sure if of them needed none of them have missing class. there other dependency missing? class documented here.

the easy answer problem use maven manage dependencies, automatically pull in gt-metadata , solve problem.

if must manage dependencies hand wrote blog post describes how use oops search geotools jars class.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -