At the time of writing this book, the latest production version of FreeMarker is 2.3.19. If you are using a newer version, check the release notes for changes. The FreeMarker project sometimes introduces changes that are not compatible with the behavior of the previous versions. If your version starts with 2.4, it's likely that such changes have been made.
Even if you incorporate FreeMarker from a repository, it's worth getting a copy of the documentation for reference. There is also some example code which we will want to walk through when we start looking at integration with web applications.
In order to incorporate FreeMarker into your project, you need a single jar file,
freemarker.jar. This, and ...