On Tuesday, October 04, 2011 11:45:09 PM santhosh06549 wrote:
> Firstly,I have developed a example jar file,it is error free but it is not
> giving the result that contains the file chooser.I need a guidance. So,I
> developed other project with same code with project name different from the
> first one.here, while compiling i am getting an error Cannot find
> Symbol:Class SimpleFeatureSource.Please help me................... thank
> you in advance
It looks like you lost a dependency. SimpleFeatureSource is part of gt-api. If
all are ok, you should execute
mvn dependency:tree
then you should see the gt-api module that depends on gt-main.
[INFO] org.geotools.demo:example:jar:1.0-SNAPSHOT
[INFO] +- junit:junit:jar:3.8.1:test
[INFO] +- org.geotools:gt-main:jar:2.7.0:compile
[INFO] | +- org.geotools:gt-api:jar:2.7.0:compile
[INFO] | +- com.vividsolutions:jts:jar:1.11:compile
[INFO] | | \- xerces:xercesImpl:jar:2.4.0:compile
[INFO] | \- jdom:jdom:jar:1.0:compile
[INFO] +- org.geotools:gt-shapefile:jar:2.7.0:compile
The pom file should contain
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-main</artifactId>
<version>${geotools.version}</version>
</dependency>
If all are ok, mvn clear install could solve a posible problem in your local
repository
cheers
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/getting-an-error-Cannot-find-Symbol
> -Class-Simple-Feature-Source-please-help-tp6860240p6860240.html Sent from
> the geotools-devel mailing list archive at Nabble.com.
--
Mauricio Pazos
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel