Bonjour Martin
With adding the dependency my test works! Thank you!
It is embarrassing me that I confounded the exception.. *shame*
But there is a same problem in Geoserver 1.4 (and 1.5?). I am using
Geoserver 1.4.x. This version included a Geotools the version 2.2 Snapshot
from Geotools. (And Geoserver 1.5 the version 2.3 Snapshot). If there is a
chance that you can update this two branches too?
Thank you for your great work!!
Regards, Thomas
Martin Desruisseaux-2 wrote:
>
> 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
>
>
--
View this message in context:
http://www.nabble.com/Transformation-between-CH1903-LV03-and-WGS84-tf3273159.html#a9179874
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
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