Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed Java 7 on my Mac (10.7.5), but in the terminal there is still java 6.

java version "1.6.0_37" 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)

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 (LatexDraw):

: CGContextGetCTM: invalid context 0x0

: CGContextSetBaseCTM: invalid context 0x0

: CGContextGetCTM: invalid context 0x0

: CGContextSetBaseCTM: invalid context 0x0

The problem is related to instability of java 6 inferred from this link

I've read this installed-java-7-on-mac-osx-but-terminal-is-still-using-version-6 and also try to change my Java version by using export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home", but in my folder /System/Library/Frameworks/JavaVM.framework/Versions, there is no version 1.7, only versions under 1.6 ??? So, how can I fix this issue?

share|improve this question
Java 6 on OS X Lion is Apple's version. Uninstall every version and then install Java 7 – pratnala Dec 2 '12 at 9:51
So you're essentially asking where Java 7 was installed to? – Daniel Beck Dec 2 '12 at 10:34
ya, a part of my question – chipbk10 Dec 3 '12 at 2:11

You must log in to answer this question.

Browse other questions tagged .