Amazon Ad

Featured Post

Sunday, March 20, 2022

Set JAVA_HOME after the installation of AdaptOpenJDK

Symptoms:

  • JAVA_HOME is empty

Edit /etc/profile:

export JAVA_HOME=/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64
export JDK_HOME=/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64
export PATH=$JAVA_HOME/bin:$PATH