Last active
September 19, 2017 18:36
-
-
Save ryanpadilha/0883e76e8889041fe408 to your computer and use it in GitHub Desktop.
$JAVA_HOME on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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