How-to Switch Java Version Mac Sierra Command Line

Switch Java Version Mac Sierra




Hello Mac User! This Tutorial Show Step-by-Step How-to Switch Java Version Mac Sierra Command Line.

Furthermore the Tutorial Include also Links on How-to Download and Install the Oracle Official Java Development Kit for Mac OS X.

How-to Switch Java Version Mac Sierra Command Line - Featured
  1. So Open a Command Line Terminal Window
    (Press “Enter” to Execute Commands)

    How-to Switch Java Version Mac Sierra Command Line - Open Terminal
  2. Then Edit the Bash Shell Config Environment

    Copy & Append inside this Function:

    Ctrl+x to Save & Exit from nano Editor 😉

  3. Load the New Environment

  4. How-to Install the Oracle Java JDK 7/8 on Mac OS X:

    Install Oracle JDK 7/8 for Mac OS X
  5. Then to Easy Switch the Java Version

    Example: