Debian and Oracle Java

  1. download Oracle JDK package
  2. apt-get install java-package
  3. fakeroot make-jpkg jdk-7*-linux-x64.tar.gz
  4. dpkg -i oracle-j2sdk1.7_1.7.0*.deb
  5. update-java-alternatives -l
  6. update-java-alternatives --jre --plugin -s j2sdk1.7-oracle
  7. update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/lib/jvm/j2sdk1.7-oracle/jre/lib/amd64/libnpjp2.so 317
  8. update-alternatives --all

 Share!

 
comments powered by Disqus