title: Installed Java 7, but interminal still Java 6
body: <p>I've installed Java 7 on my Mac (10.7.5), but in the terminal there is still java 6.</p>
  <blockquote>
  <p>java version &quot;1.6.0_37&quot;
  Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
  Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)</p>
  </blockquote>
  <p>There will be no problem with the version 6 on terminal, if I always got that errors when I tried to install a java application (<a href="http://latexdraw.sourceforge.net/download.html" rel="nofollow noreferrer">LatexDraw</a>):</p>
  <blockquote>
  <p>: CGContextGetCTM: invalid context 0x0</p>
  <p>: CGContextSetBaseCTM: invalid context 0x0</p>
  <p>: CGContextGetCTM: invalid context 0x0</p>
  <p>: CGContextSetBaseCTM: invalid context 0x0</p>
  </blockquote>
  <p>The problem is related to instability of java 6 inferred from <a href="https://discussions.apple.com/message/18394472#18394472" rel="nofollow noreferrer">this link</a></p>
  <p>I've read this <a href="https://stackoverflow.com/questions/12757558/installed-java-7-on-mac-osx-but-terminal-is-still-using-version-6">installed-java-7-on-mac-osx-but-terminal-is-still-using-version-6</a> and also try to change my Java version by using <code>export JAVA_HOME=&quot;/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home&quot;</code>, but in my folder <code>/System/Library/Frameworks/JavaVM.framework/Versions</code>, there is no version 1.7, only versions under 1.6 ??? So, how can I fix this issue?</p>