java home path in ubunto 20.04 code example Example: java jdk java_home home ubuntu openjdk-8-jdk export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64