I'm running OS X Lion. It comes with JRE6. I'd like to install JRE8. I can download a file that Oracle says is JRE 8 here:
http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
When I check my java version on the command line (after installing JRE 8), I get this:
hostname:~ username$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
hostname:~ username$ which java
/usr/bin/java
hostname:~ username$ ls -al /usr/bin/java
lrwxr-xr-x 1 root wheel 74 Dec 20 2013 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
This matches what others have seen. So I've added my a JAVA_HOME to ~/.profile as suggested. This fixes java -version
, it now reports Java 8. However, non-command-line apps still use Java 6. If I run Eclipse Luna CDT, it reports:
"Version 1.6.0_65 of the JVM is not suitable for this product. Version 1.7 or greater is required."
This makes sense--my Bash shell isn't even running when I double-click on Eclipse.
How do I actually install JRE 8?