title: How to set up Travis CI with multiple languages
body: <p>My project uses both nodejs and java</p>
  
  <p>I tried starting off with a node_js build then installing java (since this is an npm module)</p>
  
  <p>but the scripts to install java failed, plus I don't think there's a need to install it when there is a build with java that already exists.</p>
  
  <p>should I start off with a java build then install node?</p>
  
  <p>I'm trying this</p>
  
  <pre class="lang-yml prettyprint-override"><code>language: java
    - oraclejdk8
  language: node_js
  node_js:
    - "0.10"
  </code></pre>
  
  <p>which ignores the first 2 lines it seems and builds a node_js build which has java 7
  and my project uses java 8</p>
  
  <p>I tried this <a href="https://stackoverflow.com/questions/27036259/how-to-write-travis-yml-if-my-project-deps-on-python-and-nodejs">answer</a> for python</p>
  
  <p>using </p>
  
  <pre class="lang-yml prettyprint-override"><code>language: node_js
  node_js:
    - "0.10"
  java: oraclejdk8
  </code></pre>
  
  <p>but that didn't work</p>
  
  <p>How can I add java 8?</p>