Set CentOS JAVA_HOME

Create /etc/profile.d/java.sh file if it’s doesn’t exist, and add / change the content to (if you are using JDK from Oracle, you may need to adapt the path if you are using other JDK):

export JAVA_HOME=/usr/java/default/

Posted in Howto

Leave a Reply

Your email address will not be published. Required fields are marked *

*