title: Compilation error Multiple version of JAVA
body: <p>I am having the below issue when I run my maven build in eclipse. I saw many posts like this but i still can't solve this problem .Mine may be a little more specific, I know that my JAVA_HOME is pointed to java6, and that is because I am working on another application which uses java 6. The application in which I am running into issues uses Java 8</p>
  
  <pre><code> [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- 
   [ERROR] Unable to locate the Javac Compiler in: C:\Program Files\Java\jre1.8.0_92\..\lib\tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). .In most cases you can change the location of your Java installation by setting the JAVA_HOME environment variable. [INFO] 1 error 
   &lt;br&gt;[INFO] ------------------------------------------------------------- 
   &lt;br&gt;[INFO] ------------------------------------------------------------------------ 
   &lt;br&gt;[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ 
   &lt;br&gt;[INFO] Total time: 11:53 min [INFO] Finished at: 2016-08-18T16:52:13+05:30 
   &lt;br&gt;[INFO] Final Memory: 11M/141M 
   &lt;br&gt;[INFO] ------------------------------------------------------------------------ 
   &lt;br&gt;[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project 
   Compilation failure [ERROR] Unable to locate the Javac Compiler in: [ERROR] C:\Program Files\Java\jre1.8.0_92\..\lib\tools.jar 
   [ERROR] Please ensure you are using JDK 1.4 or above and [ERROR] not a JRE (the com.sun.tools.javac.Main class is required). 
   &lt;br&gt;[ERROR] In most cases you can change the location of your Java [ERROR] installation by setting the JAVA_HOME environment variable. 
   [ERROR] -&gt; [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile 
  </code></pre>
  
  <p>How can I resolve this problem without installing java 8 as it may may make changes to my JAVA_HOME etc which would make my other application to not run. Is there a way to get the JDK folder without running the .exe (p.s I already tried the 7zip method) 
  Please suggest</p>