Installed Java 7 on Mac OS X but Terminal is still using version 6

If you need to upgrade your java version on osx, it may not be as simple as it seems.

You can try many things people suggest on this post, but I found out that the easiest way is to simply install the JDK8.

The download page is below, look for jdk-8u11-macosx-x64.dmg.
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Then after installing, you will have the upgraded java version in the terminal.

localhost username$ java -version
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s