[geotk] Missing dependency: org.geotoolkit.util.StringUtilities

Jon Blower j.d.blower at reading.ac.uk
Sun Jun 6 14:43:19 EDT 2010


Hi,

I have a simple program to read data from a WMS Capabilities document:

        WebMapServer wmsServer = new WebMapServer(serverUrl,
WMSVersion.v130);
        AbstractWMSCapabilities capabilities =
wmsServer.getCapabilities();
        AbstractLayer rootLayer =
capabilities.getCapability().getLayer();

I'm using Geotk 3.12, through Maven.  When I run the program I get a
NoClassDefFoundError:

Exception in thread "Thread-1" java.lang.NoClassDefFoundError:
org/geotoolkit/util/StringUtilities
        at
org.geotoolkit.client.AbstractRequest.getURL(AbstractRequest.java:133)
        at
org.geotoolkit.wms.AbstractGetCapabilities.getURL(AbstractGetCapabilitie
s.java:82)
        at org.geotoolkit.wms.WebMapServer$1.run(WebMapServer.java:127)

I can't see the StringUtilities class in the downloaded dependencies,
nor on javadoc.geotoolkit.org.  However, there is an
org.geotoolkit.util.Strings class.  Is this what is meant?

Thanks,
Jon

--
Dr Jon Blower
Technical Director, Reading e-Science Centre
Environmental Systems Science Centre
University of Reading
Harry Pitt Building, 3 Earley Gate
Reading RG6 6AL. UK
Tel: +44 (0)118 378 5213
Fax: +44 (0)118 378 6413
j.d.blower at reading.ac.uk
http://www.nerc-essc.ac.uk/People/Staff/Blower_J.htm



More information about the Geotoolkit mailing list