0

I need to update my version of Java to 1.8. I install it successfully, but when I run...

java -version
java version "1.6.0_65"

I know this is something to do with changing my bash path but, after hours of googling, I'm pretty lost as to how to go about doing that. And I also can't find the location of the new version.

Any help is greatly appreciated.

Suraj Kapoor
  • 1,615
  • 4
  • 22
  • 34
  • Did you have a look to this answer? http://stackoverflow.com/questions/12757558/installed-java-7-on-mac-os-x-but-terminal-is-still-using-version-6 – Bruno Lavit Jan 22 '15 at 11:09

1 Answers1

0

Your JAVA_HOME needs to be set to the new java install. I'm not on my Mac at the moment, but it should be located in your .bash_profile.

JeramyRR
  • 4,273
  • 3
  • 20
  • 20