четверг, 16 января 2014 г.

[Linux] Setting up Oracle JRE on linux system

Quick HowTo set up oracle java runtime engine:
  1. download Oracle JRE tarball from Oracle Java SE Downloads 
  2. make dir/copy to/cd to for java:
    mkdir -p /usr/java/latest && cp ./jre* /usr/java/latest && cd /usr/java/latest
  3. unpack: tar zxvf jre*
  4. setup alternatives:
    update-alternatives --install "/usr/bin/java" "java" "/usr/java/latest/jre1.7.0_<version>/bin/java" 1
  5. setup this java version active:
    update-alternatives --set java /usr/java/latest/jre1.7.0_<version>/bin/java
  6. check it:
    java -version
  7. PROFIT!!1!11