title: ubuntu: installing apache ant apache-ant-1.10.1
body: <pre><code>$ ant -version
  /home/rahul/java/jdk1.8.0_121/jre/bin/java: 6: /home/rahul/java/jdk1.8.0_121/jre/bin/java: Syntax error: ")" unexpected
  </code></pre>
  
  <p>How to resolve this?</p>