Last active
November 6, 2020 20:44
-
-
Save aleksseven/c91205a5b26abac0728052aacbc1367a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sudo gedit /etc/environment | |
1. JAVA_HOME="/usr/lib/jvm/java-14-openjdk-amd64" | |
2. source /etc/environment | |
Other method of add to environment variable | |
Add to PATH in your .bashrc or .zshrc. | |
export JAVA_HOME=/usr/lib/jvm/java-14-openjdk-amd64 | |
export PATH=$PATH:$JAVA_HOME/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment