JAVA_HOME and other Oracle tales

RUS: Открываю заявку на вступление в джентельменский клуб “Пуканы запеченые от продуктов Oracle” принимайте меня! ENG: How to Install JAVA 7 (JDK 7u79) on CentOS/RHEL 7/6/5 and Fedora Configuring Environment Variables Most of Java based application’s uses environment variables to work. Use following commands to set up these variable properly. It’s also good to add following commands to any start-up script like ~/.bashrc or ~/.bash_profile. Setup JAVA_HOME Variable
1 2 3 4 |
<strong># export JAVA_HOME=/opt/jdk1.7.0_79</strong> |
Setup JRE_HOME Variable
1 2 3 4 |
<strong># export JRE_HOME=/opt/jdk1.7.0_79/jre</strong> |
Setup PATH Variable
1 2 3 4 |
<strong># export PATH=$PATH:/opt/jdk1.7.0_79/bin:/opt/jdk1.7.0_79/jre/bin</strong> |
From: http://tecadmin.net/steps-to-install-java-on-centos-5-6-or-rhel-5-6/# Read more…