<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Problem with executing sample code on geonames webservice"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/6.page</link>
		<description><![CDATA[Latest messages posted in the topic "Problem with executing sample code on geonames webservice"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Problem with executing sample code on geonames webservice</title>
				<description><![CDATA[ when i try to execute 

ToponymSearchCriteria searchCriteria = new ToponymSearchCriteria();
searchCriteria.setQ("zurich");
 ToponymSearchResult searchResult = WebService.search(searchCriteria);
 for (Toponym toponym : searchResult.getToponyms()) {
System.out.println(toponym.getName()+" "+ toponym.getCountryName());
}


i get error : 

Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/input/SAXBuilder
	at org.geonames.WebService.search(Unknown Source)
	at GeonameMain.main(GeonameMain.java:16)

Can anyone please help me in resolving this error??
I have added the geonames-0.5.jar.
but yet it is giving this error when i try to run the code.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/816.page#3687</guid>
				<link>http://forum.geonames.org/gforum/posts/list/816.page#3687</link>
				<pubDate><![CDATA[Tue, 11 Mar 2008 10:02:05]]> GMT</pubDate>
				<author><![CDATA[ Sam]]></author>
			</item>
			<item>
				<title>Re:Problem with executing sample code on geonames webservice</title>
				<description><![CDATA[ Sam

You need to put the jar file for jdom in your classpath. 
You can download it from here (see in the section "requirements")
http://www.geonames.org/source-code/

Or from the jdom.org website :
http://www.jdom.org/

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/816.page#3688</guid>
				<link>http://forum.geonames.org/gforum/posts/list/816.page#3688</link>
				<pubDate><![CDATA[Tue, 11 Mar 2008 10:05:44]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:Problem with executing sample code on geonames webservice</title>
				<description><![CDATA[ Thanks for your guidance.

Sam


]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/816.page#3690</guid>
				<link>http://forum.geonames.org/gforum/posts/list/816.page#3690</link>
				<pubDate><![CDATA[Tue, 11 Mar 2008 15:34:17]]> GMT</pubDate>
				<author><![CDATA[ Sam]]></author>
			</item>
	</channel>
</rss>