Versions Compared

Key

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

...

On a number of Linux distributions such as Ubuntu, the current active version of Java is controlled via links from /usr/bin set by the update-alternatives command; thus, the value of JAVA_HOME that causes REEF to use the Java version controlled by update-alternatives is given in the code block below. REEF will concatenate the appropriate path to find executable files. 

Code Block
languagebash
titlebash script to set JAVA_HOME

...

export

...

 JAVA_HOME=/usr

...

You can change the active version of Java controlled by update-alternatives by entering the command below and selecting the desired version from the displayed list.

Code Block
languagebash
titlebash script to list all installed Java versions on Linux

...

update-alternatives --config java