Install sunjdk7 in ubuntu, and install jre in firefox22.

Source: Internet
Author: User
Unzip, unzip: tar-xvzfjdk-7u25-linux-i586.gz copy to/usr/lib/jvm: sudocp-rfjdk1.7.0_25/usr/lib/jvm change environment variable: install sun jdk7 under gedit ubuntu, firefox22 install jre installation package is jdk-7u25-linux-i586.gz, unzip: tar-xvzf jdk-7u25-linux-i586.gz copy to/usr/lib/jvm: sudo cp-rf jdk1.7.0 _ 25/usr/lib/jvm change environment variable: gedit ~ /. Open bashrc and add: export JAVA_HOME =/usr/lib/jvm/jdk1.7.0 _ 25 export JRE_HOME =$ {JAVA_HOME}/jre export CLASSPATH =.: $ {JAVA_HOME}/lib :$ {JRE_HOME}/lib export PATH =$ {JAVA_HOME}/bin: $ PATH save closed. Use source to make it take effect: source ~ /. Bashrc and then java-version will see that the java version is 7. the firefox12's installation package is firefox-latest.tar.bz2. after the package is decompressed, it is a firefox Directory. delete the old firefox: sudo rm-r/opt/firefox and move the decompressed version to the directory: sudo mv firefox/opt/back up the link of the old firefox in the system: sudo mv/usr/bin/firefox-old create link for firefox12 sudo ln-s/opt/firefox/usr/bin/firefox and fill in add java plugin to support java 7. in the URL box of firefox, enter "about: plugins: check the current position of the plugin. here is/usr/lib/mozilla/plugins. disable Firefox. Enter the directory cd/usr/lib/mozilla/plugins and enter the link: sudo ln-s/usr/lib/jvm/jdk1.7.0 _ 25/jre/lib/i386/libnpjp2.so Open firefox and you will see that java plugin has been installed.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.