title: IntelliJ IDEA terminal java version issue
body: <p>I am facing some issue in IntelliJ IDEA compiler settings.
  I have JDK 8 installed and one of the project in idea works only on JDK 6.</p>
  
  <p>I have changed the compiler version in idea in preferences -> Java Compiler page and restarted idea.</p>
  
  <p><a href="https://i.stack.imgur.com/n3Kyt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n3Kyt.png" alt="Javac in Preferences"></a></p>
  
  <p>The problem I am facing is that on idea Terminal the version is not getting updated. Is there any way other than setting the JAVA_HOME in .profile within idea to solve this?</p>
  
  <p><a href="https://i.stack.imgur.com/vCJhy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vCJhy.png" alt="java version"></a></p>