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.