title: JAVA_HOME path for ant run command
body: <p>I am trying to install contiki-ng in my system and everything has proceeded well, until I try to run the <code>ant run</code> command in <code>contiki-ng/tools/cooja</code> directory, upon which I get the following response:</p>
  <blockquote>
  <p>We cannot run Java, please ensure you have Java installed.<br />
  We have tried to execute /usr/lib/jvm/java-11-openjdk-amd64/bin/java/bin/java but failed.<br />
  If you have installed Java in a unusual place you can set JAVA_HOME
  to the directory containing the Java installation.</p>
  </blockquote>
  <p>I realized that I had to change <code>/usr/lib/jvm/java-11-openjdk-amd64/bin/java/bin/java</code> to <code>/usr/lib/jvm/java-11-openjdk-amd64/bin/java</code> (remove /bin/java from the end; I had copied the path wrong) in the .bashrc file.</p>
  <p>Even after doing that, I am still getting the same error. Can someone help?</p>