Andrea Antonello a écrit :
I use the following jars to read some shapefiles:
geoapi-2.0.jar
gt2-api.jar
gt2-main.jar
gt2-referencing.jar
gt2-shapefile.jar

[...snip...]

I had that exception before also running in eclipse when I had not the referencing jar in the path, but after adding it to the classpath it worked properly.

When running the application outside the ide, I put all the jars in the classpath, so I really can't understand what the problem is.


Just a guess (I didn't verified). Maybe the code expect some EPSG factory. It may be worth trying to add one of the gt2-epsg-*.jar in the class path (maybe gt2-epsg-wkt.jar since some geotools modules expect this particular EPSG factory).

        Martin.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to