Installation of Java Virtual Machine in Ubuntu

Source: Internet
Author: User
Like Windows, if you need to browse a webpage with a JAVA Applet, you need to install a JAVA virtual machine. The default virtual machine is Sun's jre (javaruntimeenvironment ), of course, microsoft's Java Virtual Machine can also be installed in Windows. We will not talk about this here. Sudoapt-getinstallsun-java6-jre of course, if you don't care so many M space or need to do JA and Windows, if you need to browse the Web page with JAVA applet, you need to install Java virtual machine, the default virtual machine is Sun's jre (java runtime environment). Of course, microsoft's java Virtual Machine can also be installed in Windows. We will not talk about this here.

Sudo apt-get install sun-java6-jre

Of course, if you do not care about the dozens of MB space or need to do JAVA-related development work, we recommend that you install JDK. JDK contains JRE.

Sudo apt-get install sun-java6-jdk

After the installation is complete, you still cannot view the webpage with the applet, because the browser plug-in has not been configured. Here we take FIREFOX as an example:
Cd to the/usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7 directory, you will find a file named libjavaplugin_oji.so, this is a dynamic link library (dll) file in linux. Regardless of the number of shortcuts, copy the shortcuts to the plug-in directory of FIREFOX.

Cd/usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7

Sudo chmod + w libjavaplugin_oji.so

Sudo chmod + w/usr/lib/firefox/plugins

Ln-s libjavaplugin_oji.so/usr/lib/firefox/plugins

Enjoy it!
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.