I just installed Oracle's Java version 7u7 on my Mac (running OSX Mountain Lion). However, when I run java -version
it still displays the old version (6u29).
How do I fix this? Do I even need to fix this? What version will browsers (Firefox) use in this case? And what version will be used when I run Java applications directly?
I've seen this question but this doesn't work in my situation (probably because this question is about the JRE and the other question about the JDK). In my case the Java Preferences app only displays Java 6 versions (32 bit and 64 bit).
Update:
which java
points to/usr/bin/java
/usr/bin/java
is a symlink to/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
/System/Library/Frameworks/JavaVM.framework/Versions/
only contains the folderA
(awesome version name) - whichCurrent
points to.
which java
from terminal. It'll tell you where the system is running the executable. For instance, on the linux machine in front of me, it says it's/usr/bin/java
, and thell /usr/bin/java
says that it's a sym link to the actual install.