Hi, I have tried ImageLab chapter of the tutorial. But when I run
ImageLab.java, after file chooser step (at line: WorldImageReader reader = new
WorldImageReader(file);), eclipse gives an error like following:Exception in
thread "main" java.lang.NoClassDefFoundError:
org/opengis/spatialschema/geometry/Envelope
at org.geotools.demo.example.ImageLab.main(ImageLab.java:77)
Caused by: java.lang.ClassNotFoundException:
org.opengis.spatialschema.geometry.Envelope
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 1 more
I think it is about the classpath configuration but I couldnt find the
solution. Also I want to send my pom.xml file to be sure that it is correct. In
pom.xml file I want to know that:Is it a problem that the jars having same
groupid have different versions? Like gt2-coverage.jar(version 2.4.4) and
gt2-image.jar(version 2.5.2).
Also I know it is out of the scope but in my dependency tree in eclipse I see
gt-api-2.5.2.jar and gt2-api-2.4.4.jar at the same time. There are some other
gt- and gt2- jars having same name. Is it a problem?My pom.xml is like
that(just dependencies):<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-main</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-shapefile</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-hsql</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt2-image</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt2-coverage</artifactId>
<version>2.4.4</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-render</artifactId>
<version>2.5.3</version>
</dependency>
<dependency>
<groupId>javax.media</groupId>
<artifactId>jai_core</artifactId>
<version>1.1.3</version>
</dependency>
<dependency>
<groupId>javax.media</groupId>
<artifactId>jai_codec</artifactId>
<version>1.1.3</version>
</dependency>
<dependency>
<groupId>javax.media</groupId>
<artifactId>jai_imageio</artifactId>
<version>1.1</version>
</dependency>
<!-- =========================================================== -->
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt2-epsg-wkt</artifactId>
<version>2.4-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt2-cql</artifactId>
<version>2.4-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt2-widgets-swing</artifactId>
<version>2.4-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt2-metadata</artifactId>
<version>2.4-SNAPSHOT</version>
</dependency>
</dependencies>
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users