Set Linux environment variables JAVA_HOME & PATH globally using /etc/profile


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. export JAVA_HOME=/usr/lib/jvm/default-java/jre
  2. export PATH=$JAVA_HOME/bin:$PATH

Report this snippet


Comments


You need to login to view comments.