title: Minecraft Forge Setup JAVA_HOME Variable - Ubuntu
body: <p>As the title suggested, I have Ubuntu, and I was trying to tun the command ./gradlew setupDecompWorkspace in the Minecraft Forge folder, but I got the following error at about 70%</p>
  
  <pre><code>Execution failed for task ':recompileMc'.
  </code></pre>
  
  <blockquote>
    <p>Unable to find a javac compiler;
      com.sun.tools.javac.Main is not on the classpath.
      Perhaps JAVA_HOME does not point to the JDK.
      It is currently set to "/usr/lib/jvm/java-7-openjdk-amd64/jre"</p>
  </blockquote>
  
  <p>While I have the JAVA_HOME variable set to the JDK and not the JRE, I confirmed it by running export in terminal, and the following was stated</p>
  
  <pre><code>declare -x JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"
  </code></pre>
  
  <p>Please help me with this problem!!</p>