Skip to main content
missed export directive fixed
Source Link
Tagwint
  • 2.5k
  • 1
  • 17
  • 22

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 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

Source Link
Tagwint
  • 2.5k
  • 1
  • 17
  • 22

If it is about setting JAVA_HOME system-wide, /etc/profile.d/ would be a good choice.

echo 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