If you read further down the quickstart tutorial we provide download and
setup instructions (for those that do not have experience with maven).

Here are the links to download the jars, and configuring:
- eclipse:
http://docs.geotools.org/latest/userguide/tutorial/quickstart/eclipse.html#download-geotools
- netbeans:
http://docs.geotools.org/latest/userguide/tutorial/quickstart/netbeans.html#maven-alternative

While maven is the most popular dependency management system for java, you
can also look at ivy (an ant build system that can make use of maven
repositories).

Much spatial data requires makes use of spatial reference systems defined
by the "european petroleum standards group". To correctly draw the spatial
information we need a copy of the EPSG database. You can choose between a
couple of implementations - I tend to recommend hsql as it is small and
written in java.

Our geotools download is supposed to include all the jars required to use
the library - If we have missed please let us know.
--
Jody

--
Jody Garnett

On 20 August 2015 at 17:44, Michael Duffy <mduffy...@gmail.com> wrote:

> GeoTools looks like a great project; however, I and many others cannot get
> the most basic tutorial to run.
>
> Why does GeoTools require a Maven dependency to go out and find the right
> JAR files?
>
> Why not just include all the necessary JAR files so the tutorials can
> SIMPLY be run in Eclipse???!!!
>
> I know this class (org.hsqldb.lib.FrameworkLogger) is in the
> hsqldb-2.2.8.jar and this JAR is in my class path.  So why isn't it
> loading?
>
> Any suggestions would be greatly appreciated.  Apologies for the rant.
>
> Here is the full stack trace:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: Could not
> initialize class org.hsqldb.lib.FrameworkLogger
> at org.hsqldb.persist.Logger.getEventLogger(Unknown Source)
> at org.hsqldb.persist.Logger.logInfoEvent(Unknown Source)
> at org.hsqldb.persist.Logger.closePersistence(Unknown Source)
> at org.hsqldb.Database.reopen(Unknown Source)
> at org.hsqldb.Database.open(Unknown Source)
> at org.hsqldb.DatabaseManager.getDatabase(Unknown Source)
> at org.hsqldb.DatabaseManager.newSession(Unknown Source)
> at org.hsqldb.jdbc.JDBCConnection.<init>(Unknown Source)
> at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source)
> at org.hsqldb.jdbc.JDBCDataSource.getConnection(Unknown Source)
> at org.hsqldb.jdbc.JDBCDataSource.getConnection(Unknown Source)
> at
> org.geotools.referencing.factory.epsg.DirectEpsgFactory.getConnection(DirectEpsgFactory.java:3196)
> at
> org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore(ThreadedEpsgFactory.java:436)
> at
> org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore(DeferredAuthorityFactory.java:133)
> at
> org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable(BufferedAuthorityFactory.java:235)
> at
> org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable(DeferredAuthorityFactory.java:119)
> at
> org.geotools.factory.FactoryRegistry.isAvailable(FactoryRegistry.java:667)
> at
> org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:501)
> at org.geotools.factory.FactoryRegistry$1.filter(FactoryRegistry.java:192)
> at javax.imageio.spi.FilterIterator.advance(Unknown Source)
> at javax.imageio.spi.FilterIterator.<init>(Unknown Source)
> at javax.imageio.spi.ServiceRegistry.getServiceProviders(Unknown Source)
> at
> org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:197)
> at
> org.geotools.referencing.ReferencingFactoryFinder.getFactories(ReferencingFactoryFinder.java:180)
> at
> org.geotools.referencing.ReferencingFactoryFinder.getCRSAuthorityFactories(ReferencingFactoryFinder.java:455)
> at
> org.geotools.referencing.DefaultAuthorityFactory.getBackingFactory(DefaultAuthorityFactory.java:88)
> at
> org.geotools.referencing.DefaultAuthorityFactory.<init>(DefaultAuthorityFactory.java:69)
> at org.geotools.referencing.CRS.getAuthorityFactory(CRS.java:263)
> at org.geotools.referencing.CRS.decode(CRS.java:520)
> at org.geotools.referencing.CRS.decode(CRS.java:448)
> at org.geotools.data.DataUtilities.createAttribute(DataUtilities.java:2697)
> at org.geotools.data.DataUtilities.createType(DataUtilities.java:1964)
> at org.geotools.data.DataUtilities.createType(DataUtilities.java:1937)
> at EsriTest.main(EsriTest.java:36)
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> 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

Reply via email to