PrimeFaces only requires Java 5+ runtime. With the help of the Maven tool, you can easily get the artifact for PrimeFaces library (for more information on installing Maven, visit http://maven.apache.org). Please note that Maven demands readers Java Development Kit is installed on your local environment instead of the Java Runtime Environment.
To get the Cookbook showcase up and running, you need to pull the source code with a Git client. The details on how to run the showcase web application in your local environment can be found on GitHub (https://github.com/ova2/primefaces-cookbook).