Install Java Plug-in Ubuntu 9.10

Source: Internet
Author: User

Recently, Java applet is used in Linux. By default, neither Firefox nor Google Chrome for Linux has Java Plug-ins installed. You need to manually install it.

First, make sure that you have installed Java. You can choose to install JDK (Java Development Kit) or install JRE (Java Runtime Environment) separately ). Among them, JDK is the core of the entire Java, including JRE, a bunch of Java tools and Java-based class libraries; and JRE is a set of environments necessary to run Java programs, including JVM (Java
Virtual Machine) standard implementation and Java core class library. Here, I assume that JRE has been installed in the/opt/Java/jre1.6.0 _ 19/directory.

Firefox

By default, Firefox-related library files are located in the/usr/lib/Firefox-$ version/directory (you can use the whereis Firefox command to find the library file directory ). Run the following commands in sequence:

CD/usr/lib/Firefox-$ version/plugins

Sudo ln-S/opt/Java/jre1.6.0 _ 19/plugin/i386/ns7/libjavaplugin_oji.so or

Sudo ln-S/opt/Java/jre1.6.0 _ 19/lib/i386/libnpjp2.so

Libjavaplugin_oji.so is the earlier plug-in library, while libnpjp2.so is the plug-in library in next-generation Java Plugin-in technology. The first database cannot fully support the latest Java
Applet application (for example, see here, here and here ). However, Firefox
2. The new libnpjp2.so plug-in library is not supported. Therefore, you can only add the libjavaplugin_oji.so plug-in library in the first way. Firefox 3 supports the latest plug-in library.

Finally, enter "about: plugins" in the address bar of Firefox to check whether the installation is successful.

Google-chrome for Linux

Run the following commands in sequence:

Sudo mkdir/opt/Google/Chrome/plugins

CD/opt/Google/Chrome/plugins

Ln-S/opt/Java/jre1.6.0 _ 19/lib/i386/libnpjp2.so

Google Chrome for Linux only supports next-generation Java Plugin.

Similarly, enter about: Plugins in the address bar to check whether the installation is successful.

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.