Some of the recipes require third-party JARs to run. All of the JARs needed to run the examples are contained in the companion download. However, these JARs must be in your classpath for the examples to run. To make this easier, there is a file named recipe.sh contained in the root directory of the HTTPRecipes directory. You can use it to run the examples. For example, to run the GetCityTime example from Chapter 3, you would use the following command.
If you get a permissions error, you may have to enable the execution privilege on the recipe.sh command. To do this, execute the following command:
chmod +x recipe.sh
Once you execute the above command, you should see Figure D.7.
Figure D.7: Successfully Running an Example on UNIX
So far, you have seen how to execute the examples from the command line. The next two sections show you how to use a common IDE.