title: How to install java 7 in chef cookbook using json override
body: <p>I have a web server role in my chef recipe like so</p>
  
  <pre><code>name "webserver"
  
  'nginx' =&gt; {
     'port' =&gt; "80"
  },
  'java' =&gt; {
     'openjdk_version' =&gt; 7
  }
  </code></pre>
  
  <p>Berksfile</p>
  
  <pre><code>cookbook "java"
  </code></pre>
  
  <p>I am trying to install java 7 - cannot seem to find a example of doing this inside a json override.</p>
  
  <p>Current error is ERROR: Option version must be a kind of [String, Array]!  You passed 8.</p>
  
  <p>Thanks</p>