- Add webupd8team repository:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
- Install oracle-java7-installer:
sudo apt-get install oracle-java7-installer
- Set Java 7 as default:
sudo update-java-alternatives -s java-7-oracle
- 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))
No comments:
Post a Comment