Hi,
First of all, sorry for my poor english ;)
I´m trying go use Geotools in my application (developing in NetBeans 6.9.1).
I´ve a lot of code already written and I don´t want to use Maven.
I´ve downloaded the geotools .zip file and obtained de binaries making a
"mvn clean install".

I tryed to create a simple proyect in NetBeans as described in Geotools web
page "QuickStart":
http://docs.geotools.org/stable/userguide/quickstart.html#example-code

But I get error compiling code.
First time, a NoClassDefFoundError of org.opengis.coverage.grid.GridCoverage
, I searched the cause and I realized that class was in other libraries...
GeoAPI. I downloaded the libraries and added them to my project.

Then, compilation was ok, but when I tryed to run, other
NoClassDefFoundError of class org.opengis.style.StyleFactory. I searched the
cause and realized that class wasn´t in the jars of geoAPI added before... I
searched the missing class and added to my project.

Compilation was OK again, but at run time, it failed again. This time,
another NoClassDefFoundError for class org.vividsolutions.jts.geom.Geometry.
I went to Vivid solutions page, downloaded de clasess, and added to my
project.

After that the program ran but when I select the shapefile...it crashes
again with another exception...

The question is...
¿Could anyone make work geotools without Maven? I now maven downloads all
library dependencies...but this page of geotools sais that is possible to
run geotools without Maven:
http://docs.geotools.org/latest/tutorials/quickstart/netbeans.html

It´s seems to be vety easy in the tutorial, but I´ve been hours trying to do
it...and I´m going crazy!

Help please!!!

Alberto Silva López.

Researcher and Software Developer @ University of A Coruña (UDC).
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to