Skip to content

Instantly share code, notes, and snippets.

@ryanpadilha
Last active September 19, 2017 18:36
Show Gist options
  • Save ryanpadilha/0883e76e8889041fe408 to your computer and use it in GitHub Desktop.
Save ryanpadilha/0883e76e8889041fe408 to your computer and use it in GitHub Desktop.
$JAVA_HOME on Linux
$ vim .bashrc
JAVA_HOME=/usr/lib/jvm/java-8-oracle
export PATH=$JAVA_HOME:$PATH
$ echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle
# reload bashrc file
$ . .bashrc
$ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment