Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 just installed jdk 7 and I can't seem to be able to use it. I updated /Library/Java/Home/ to softlink to /Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home

I added /Library/Java/Home/bin to my path but java -version still returns

/Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home at 12:10AM ➜ java -version 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)

share|improve this question
I don't have a complete answer, but the preferred way to find the current java home is to call /usr/libexec/java_home - my guess is that you need to update that or to understand how it works. It's still probably pointing to the older home. – Jerry Seeger Feb 5 '13 at 0:34

You will have to access the Java located in the utilities folder (you could also just search with spotlight). Here you will have to drag Java SE 7 to the very top.

As described by the Java Preferences:

Java Applications and command line tools use this order to determine the first compatible version to use

Before and after: enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.