In centos5.5, firefox3.6.7 cannot load the applet.

Source: Internet
Author: User

After upgrading some patches under centos5.5, Mozilla firefox3.6.7 is upgraded to version 3.6.7. Firefox no longer supports Java Plug-ins in the previous Oji (Open Java Virtual Machine Integration) architecture from the 3.6 series. You need to use the new version of browser plug-ins that comply with the npapi standards provided in Java 6 updates 10 and later. As a result, firefox3.6.7 cannot load the Java Plug-in and thus cannot use the applet. Specifically, the Java Plug-In cannot be installed, and the applet on the browser page cannot be executed.

 

[Note] applet is a very old Java application, which is a browser front-end technology and has a direct relationship with the browser, because it is downloaded from the Web server to the browser, executed in the Security Sandbox of the browser.
An example of an applet embedded in HTML is as follows:
<APPLET code = "helloworld. Class" width = 200 Height = 150> </APPLET>
The helloworld. Class file contains the binary code of the applet after compilation.
The applet is strictly restricted in the Security Sandbox of the browser and cannot interact with the file system of the browser. However, you can use the built-in socket interface to communicate with other network applications.

 

This article describes how to configure the Java Plug-in Mozilla Firefox 3.6.7.

In fact, centos 5.5 itself comes with a Java environment. After it is configured and enabled in software management, run the Java-version command to see the following information:

Java version "1.6.0 _ 0"
Openjdk Runtime Environment (icedtea6 1.6) (rhel-1.13.b16.el5-i386)
Openjdk client VM (build 14.0-f8, mixed mode)

But it cannot work with firefox3.6.7.

So, download from the Java official website http://java.com for Linux Java version download (recommended version6 update21), choose for Linux self-extracting file jre-6u21-linux-i586.bin, file size 19.9 MB.

After the download is complete, copy it to the install path/usr/lib/Mozilla/plugins of Mozilla Firefox and add the executable permission:

Chmod + x jre-6u21-linux-i586.bin

Then execute it:
/Jre-6u21-linux-i586.bin

After self-decompression, a new directory jre1.6.0 _ 21 is generated under the current directory, and all files are included.

You can find a libnpjp2.so file in the jre1.6.0 _ 21/lib/i386/directory, which is related to the Java Plug-in of Firefox, create a symbolic link under the current directory/usr/lib/Mozilla/plugins to point to it:

Ln-s jre1.6.0 _ 21/lib/i386/libnpjp2.so

The above command generates the symbolic link libnpjp2.so, pointing to (->) jre1.6.0 _ 21/lib/i386/libnpjp2.so file.

OK. Open the Firefox browser again. Under "add plug-in", you can see the plug-in "Java (TM) Plug-In 1.6.0 _ 21 ". The "Java" button in a row of quick buttons in the lower-right corner of the browser can also be quickly supported by "enable/disable" Java (quick Java Plug-In needs to be installed ). Open the Webmin website in the browser. Under the other menu, you can open file manager to manage files on the website. File Manager is developed using Java Applet technology. Although applet is a very backward technology, some small applications still need Firefox to support Java Plug-ins. If the Java Plug-in is not available, a message is displayed, indicating that Java support is not installed in Firefox.

We hope that this problem can be solved by ourselves in later centos versions.

Author: Zhang Qing (mesh) Xi'an PHP Education Training Center
From mesh horizon: http://blog.why100000.com
Author Weibo: http://t.qq.com/zhangking
Why 100,000 computer learning networks: http://www.why100000.com

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.