[COOK-2793] Improved Windows support for Java Cookbook

https://tickets.opscode.com/browse/COOK-2793