Thomas Zuberbühler a écrit :
> I using the trunk from svn, called "mvn install" in
> /trunk/gt/modules/library/referencing/target and get the new
> gt2-referencing-2.4-SNAPSHOT.jar file. Did I copy the incorrect jar file to
> my project?
No, it is the corrent file. But it is not suffisient, since this JAR has
dependency to gt2-metadata-2.4-SNAPSHOT.jar.
> I get following exception:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/geotools/util/UnsupportedImplementationException
So the exception is not UnsupportedImplementationException; the exception is
NoClassDefFoundError :)
The org.geotools.util package is defined in the gt2-metadata-2.4-SNAPSHOT.jar,
so you really need it in the classpath. It is not the only dependency, you will
probably need some additional one like GeoAPI.
Tip: you may try the following: run "mvn install" once from the Geotools root
project ("/trunk/gt/"). You should get "target" directory with every JARs in it,
including dependencies. Copy all those JAR in some "Libraries" directory on your
system, at your choice. You get a lot of JAR, but every Geotools JAR known their
dependencies. So if you just declare your classpath as below:
java -classpath ~/Libraries/gt2-referencing-2.4-SNAPSHOT.jar ...
Then Java will known that gt2-referencing-2.4-SNAPSHOT.jar depends on
gt2-metadata-2.4-SNAPSHOT.jar and will add automatically the later on the
classpath too. Same for GeoAPI dependencies, etc. Only the required dependencies
will be add in yours classpath, so it should not overload your system even if
the directory is full of JARs. But it work only if all JARs are in the same
directory (no matter where the directory is).
Martin
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users