Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Untar the Java runtime (instructions to follow).

Add to Class Path for a Session and Particular User

This is my preferred approach. I launch a terminal and make a specific Java version available or the particular session. This change is not permanent and I can load multiple terminal sessions testing with different versions of Java.

...

Code Block
languagebash
source java8.sourcefile
 
java -version # verify
Java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

 

Change Java for All Users

 

References

Good Q&A on how to change Mac OS X Path - http://unix.stackexchange.com/questions/23426/how-to-alter-path-within-bash-script

Change Java path for all uses (this method pre-empts user/bin) - http://daniel.hepper.net/blog/2011/02/change-order-of-path-entries-on-mac-os-x/