CentOS 6: Set JAVA_HOME

Versions

  1. CentOS 6.5

Install

  1. Edit /etc/profile.d/java.sh:
    Note
    Replace $JAVA_HOME below with the absolute path to the java distribution. If Oracle JDK is installed $JAVA_HOME is /usr/java/latest

  2. Load into current session:

Verify

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">