Search This Blog

Install Java 7 on Ubuntu 12.04 LTS

  1. Add webupd8team repository:
    sudo apt-get install python-software-properties
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    
  2. Install oracle-java7-installer:
    sudo apt-get install oracle-java7-installer
    
  3. Set Java 7 as default:
    sudo update-java-alternatives -s java-7-oracle
    
  4. Set up Java plugins for browsers:
    if [[ $(uname -a) == "x86_64" ]]; then machine=amd64; else machine=i386; fi; sudo update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/lib/jvm/java-7-oracle/jre/lib/${machine}/libnpjp2.so $((`LANG=C update-alternatives --display mozilla-javaplugin.so | grep ^/ | sed -e 's/.* //g' | sort -n | tail -1`+1))
    

See also

  • https://docs.google.com/document/d/1DzjvNgiF8OMUD0L6LdvOkvDcc6wYIk1iPFCkoW2pPf4/edit

No comments:

Post a Comment