Jump to content


  • iBotModz CBox

    Tutorial info Visit support topic

    • Added on: Jan 03 2012 09:10 AM
    • Views: 10850
    • |

    Setting JAVA_HOME on a CentOS box

    This will help set the variable JAVA_HOME so you may use java and maven correctly.

    Posted by iBotPeaches on Jan 03 2012 09:10 AM
    • Root account
    1) Edit your bash_profile via
    vi /root/.bash_profile

    2) Add the following line (based on the path of your jdk)
    export JAVA_HOME=/usr/local/jdk1.6.0_21
    (Just add it where the other "export" lines are)

    3) Logout of the console/session. Re-log in. You need to do this to reset bash. Sometimes typing "bash" will suffice.

    4) Type this command to test
    echo $JAVA_HOME

    Powered by Tutorials 1.5.0 © 2024, by Michael McCune