When checking that the environment variable is set. echo $ JAVA_HOME
The command returns an empty string. 
Located in the .bashrc file
export JAVA_HOME = $ (/ usr / lib / jvm / java-8-openjdk-amd64) export PATH = $ JAVA_HOME / jre / bin: $ PATH
When checking other GRADLE_HOME, M2_HOME environments, the command returns the specified path.
Why is that?