Cedric Briançon a écrit :
I'm trying to use the GeodeticCalculator to calculate an orthodromic
distance, but I've this error when I try to compile my code :

java.lang.NoClassDefFoundError:
org/opengis/referencing/crs/CoordinateReferenceSystem
    at Distance.init(Distance.java:18)
    at sun.applet.AppletPanel.run(AppletPanel.java:378)
    at java.lang.Thread.run(Thread.java:595)


Generally speaking, when the throwable class name end with "Error" instead of "Exception" (as in "NoClassDefFoundError"), it is almost always an installation problem. The most common causes are: 1) a JAR file missing on the classpath, or 2) mixing JAR files from different Geotools versions.


I use Eclipse3.1.1 on Linux... I've compiled Geotools 2.2.x branches
with maven 1.0.2 (build successful). It may be a problem with eclipse
but I don't really know ...

I can't help with Eclipse, and the sample code provided is quite simple. The GeodeticCalculator has no sophesticated dependencies. Just make sure that geoapi-2.0.jar and vecmath.jar are in yours classpath.

        Martin.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to