Chapter 14 Third Practice Solution Important Note
The third hands-on practice in Chapter 14 uses the Google Web APIs, a web service published by Google to provide access to their search engine. Using the Google Web APIs requires a unique license key distributed to people who sign up for free developer accounts with Google.
The posted solution for Chapter 14 does not contain a valid license key, and so will not work as-is. To run the solution, do the following:
- Go to http://www.google.com/apis/ and click the link labeled Create a Google Account.
- Follow the instructions on the page that appears.
- When the verification email from Google arrives, click the enclosed link and log in to your account. Google will send you a second email, containing your license key.
- When the second email from Google arrives, note your license key.
- Open the posted solution for Chapter 14 in JDeveloper.
- In the Application Navigator, navigate to Applications\GoogleWSApp\Model\Application Sources\googlewsapp.model\Search.java.
- Open Search.java in the Code Editor.
- Find the method
doSearch(). - In the method body, replace the string
"XXXX" with your license key, enclosed in quotation marks. - Rebuild the project.