First pass at making using the java cookbook optional.

First pass at making using the java cookbook optional.

For #84.