If it is about setting JAVA_HOME system-wide, /etc/profile.d/ would be a good choice.
echo export JAVA_HOME="put path to java home here">/etc/profile.d/javaenv.sh
chmod 0755 /etc/profile.d/javaenv.sh
on your next logon you'll have it
If it is about setting JAVA_HOME system-wide, /etc/profile.d/ would be a good choice.
echo export JAVA_HOME="put path to java home here">/etc/profile.d/javaenv.sh
chmod 0755 /etc/profile.d/javaenv.sh
on your next logon you'll have it