Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning Java 2
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Java 2
This is the forum to discuss the Wrox book Beginning Java 2, SDK 1.4 Edition by Ivor Horton; ISBN: 9780764543654
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Java 2 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 16th, 2004, 03:55 AM
Registered User
Join Date: Mar 2004
Location: Ho Chi Minh, , Vietnam.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to make a query to google?

I'm new. And I'm new in Java network, too. Now, I want to write a Java Application. Getting a WebPage from google.com is one of its functions.
For examples, I want to query with keyword "linux", so I use URL object, String url = "http://www.google.com/search?q=linux". But I couldn't do it. Exception was thrown at anytime!
Do you know how to get a query from google.com? Please show me the right way!
Could you understand my question? (because, I'm not good in English).
Waiting for your reply, goodbye! Thank you very much.

  #2 (permalink)  
Old March 26th, 2004, 02:12 PM
Registered User
Join Date: Aug 2003
Location: , , United Kingdom.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to james_uk

Get hold of googleapi.jar and do something like :-

GoogleSearch s = new GoogleSearch();
try {
   GoogleSearchResult r = s.doSearch();
}catch (GoogleSearchFault f) {

You get a client key, the jar file and more examples at :-
Your English is fine.



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I make this query michael193nj Access 3 March 19th, 2008 05:13 PM
Make Table Query CongoGrey Access 2 June 1st, 2007 06:22 AM
how to make a query from an existing query raport SQL Language 3 November 13th, 2006 08:59 PM
Make table Query and Datepart marshaji Access 1 June 21st, 2005 12:36 PM
Error on Make-Table Query In Union Query rylemer Access 1 August 20th, 2003 07:42 PM

All times are GMT -4. The time now is 12:40 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.