Just for the record: I load the jars with the ClassLoader and so far so good: ClassLoader loader = new AdaptiveClassLoader(dynamicClassPath, true);
The problem I had (and tried to explain) came from the fact that for some reason the dynamic loading doesn't work with some of the geotools modules (at the moment I don't know the reason). Therefore by adding to the startscript the classpath to the geotools jars did the trick. That's also the reason why the eclipse worked properly. This is probably not the right mailinglist for these kind of problems, however if someone knows what is going on, ideas are welcome. I also noticed the the units and vectmath packages are needed when reading shapefiles, but not in every case. Any place where I can read why? Any hint? Regards, Andrea On Sunday 01 January 2006 23:17, Martin Desruisseaux wrote: > 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. -- ____________________________________________________________________________ HydroloGIS - Environmental Open Source Solutions www.hydrologis.com Andrea Antonello Environmental Engineer mobile: +393288497722 "Let it be as much a great honour to take as to give learning, if you want to be called wise." Skuggsja' - The King's mirror - 1240 Reykjavik ____________________________________________________________________________ ------------------------------------------------------- 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
