You're not having much luck are you :) I just tried the ImageLab app from within NetBeans using GeoTools version 8.0 and there were no errors either building or running it.
Below is the pom.xml that I used. Please try another NetBeans / Maven build using this pom in place of your existing pom. If that doesn't work, and you are not using Java 7 as mentioned previously, then we'll have to hope someone else here has another suggestion. Michael <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.geotools.tutorial</groupId> <artifactId>imagelab</artifactId> <version>0.1</version> <packaging>jar</packaging> <name>ImageLab</name> <description>GeoTools image tutorial</description> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <geotools.version>8.0</geotools.version> </properties> <dependencies> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-shapefile</artifactId> <version>${geotools.version}</version> </dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-swing</artifactId> <version>${geotools.version}</version> </dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-epsg-hsql</artifactId> <version>${geotools.version}</version> </dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-geotiff</artifactId> <version>${geotools.version}</version> </dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-image</artifactId> <version>${geotools.version}</version> </dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-wms</artifactId> <version>${geotools.version}</version> </dependency> </dependencies> <repositories> <repository> <id>osgeo</id> <name>GeoTools repo</name> <url>http://download.osgeo.org/webdav/geotools/</url> </repository> </repositories> </project> On 22 November 2012 17:13, Boided <richa...@gmail.com> wrote: > Hello again, > > Actually i have built my complete project without using > Maven and it is working perfect. Now i need to open a geotiff file and a > shapefile, for this i am trying the ImageLab example. > As you said i tried this example with Maven on netbeans. > Now this same example is giving me the following errors before compiling: > > 1) cannot find symbol > symbol : constructor > KVP(java.lang.String,java.lang.String,java.lang.String,java.lang.String) > location: class org.geotools.util.KVP > > 2) incompatible types > found : int > required: java.lang.Integer > ( for (int i = 0; i < numBands; i++) { bandNumbers[i] = i+1; }) > > 3)cannot find symbol > symbol : method > showInputDialog(org.geotools.swing.JMapFrame,java.lang.String,java.lang.String,int,<nulltype>,java.lang.Integer[],int) > location: class javax.swing.JOptionPane > > I didnt got these errors running it without Maven. > I am using geotools 8.0 and added all the dependencies according to your > dependency tree. > Please can you suggest something on this.. > > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/Gdal-error-while-running-ImageLab-example-tp5017554p5018060.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > GeoTools-GT2-Users mailing list > GeoTools-GT2-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users