onentwoo
Mar 13th 2005, 9:51 am
Greetings
Well i am ready to give up - it taking me a lot of time learning how to use Yahoo API.
after with forums help i realized that i need to download all kind of JAXB and JAXME jars.
I finally was able to go without errors - until i got the :
java.net.UnknownHostException: api.search.yahoo.com
My program is simple (java one):
try
{
SearchClient x = new SearchClient("myCode");
WebSearchRequest u = new WebSearchRequest("test word");
WebSearchResults z;
WebSearchResult d;
x.webSearch(u);
d = z.listResults()[0];
System.out.println(d.getTitle());
}
catch (SearchException v)
{
System.out.println(v.toString() );
}
catch (IOException v)
{
System.out.println(v.toString() );
}
So why does it throw this exception ? and how come others use it so quickly ?
I don't remember having such a hard time with Google API.
anyone know ?
Thanx in advance
Well i am ready to give up - it taking me a lot of time learning how to use Yahoo API.
after with forums help i realized that i need to download all kind of JAXB and JAXME jars.
I finally was able to go without errors - until i got the :
java.net.UnknownHostException: api.search.yahoo.com
My program is simple (java one):
try
{
SearchClient x = new SearchClient("myCode");
WebSearchRequest u = new WebSearchRequest("test word");
WebSearchResults z;
WebSearchResult d;
x.webSearch(u);
d = z.listResults()[0];
System.out.println(d.getTitle());
}
catch (SearchException v)
{
System.out.println(v.toString() );
}
catch (IOException v)
{
System.out.println(v.toString() );
}
So why does it throw this exception ? and how come others use it so quickly ?
I don't remember having such a hard time with Google API.
anyone know ?
Thanx in advance