Use Berkshelf.
Add cookbook for java.(limitation:for specified environment)