Documentation Contents
Java Platform, Standard Edition Installation Guide
Contents    Previous    Next

9 Manual Installation and Registration of Java Plugin for Linux


Note:

Many browser vendors have removed NPAPI based plugin support. Therefore, the Java Plugin will not register with any modern browsers, such as Firefox ( Firefox 52+) and Chrome (Chrome 42+).

Manually linking the Java plugin libraries to the Mozilla plugins directory may cause the Firefox browser to crash on Linux during startup, due to incompatibilities with 'glibc' versions in JDK 8u191 and later releases. The crash might also occur if the link was manually created for an earlier JRE and a user updates to JDK 8u191 or later releases. For more information, see the Known Issues section of the JDK 8u191 release notes.


This page describes how to install and register the Java plugin.

This page has these topics:

See "JDK 8 and JRE 8 Installation Start Here" for general information about installing JDK 8 and JRE 8.

Plugin Installation

When you install the Java platform, the Java plugin file is included as part of that install. If you want to use Java within Firefox, you need to manually create a symbolic link from the plugin file in the release to one of the locations that Firefox expects. To make the plugin available to all users, create the link inside of the Firefox application's directory, in the plugins subdirectory. Alternatively, you can create the symbolic link in your home directory, in ~/.mozilla/plugins. In the remainder of this document, the text, "Firefox plugins directory", implies either of these locations.


Note:

For Firefox version 21 and higher, you must create the symbolic link in your home directory, ~/.mozilla/plugins. Beginning with Firefox version 21, creating the symbolic link in the plugins subdirectory of the Firefox application's directory is not supported.

This release provides the Next-Generation Java plugin. If you have been using the classic plugin, see "Notes" for further information.

The location of the plugin file for Linux varies according to the processor architecture of the underlying platform, as shown in the following table.

Processor Architecture Location of File
32-bit jre1.8.0version/lib/i386/libnpjp2.so
64-bit jre1.8.0_version/lib/amd64/libnpjp2.so

If you are using a 32-bit Firefox, you should use the 32-bit Java Plugin (from the lib/i386 directory). To determine which version of Firefox you are running, launch the application, and select the menu item Help > About Mozilla Firefox. At the bottom of the window is a version string line that contains either "Linux i686" (32-bit) or "Linux x86_64" (64-bit).

To install the Java Plugin follow these steps:

  1. Exit Firefox.

  2. Uninstall any previous installations of Java Plugin.

    Only one Java Plugin can be used at a time. When you want to use a different plugin, or version of a plugin, remove the symbolic links to any other versions and create a fresh symbolic link to the new one.

    Remove the symbolic links (or move them to another directory) to javaplugin-oji.so and libnpjp2.so from the Firefox plugins directory.

  3. Create a symbolic link to the Java Plugin in the Firefox plugins directory.

    For a 32-bit plugin:

    $ cd  Firefox/plugins
    $ ln -s JRE/lib/i386/libnpjp2.so . 
    

    For a 64-bit plugin:

    $ cd Firefox/plugins
    $ ln -s JRE/lib/amd64/libnpjp2.so .
    
    
  4. Start the Firefox Browser.

  5. Type about:plugins in the Location bar to confirm that the Java Plugin is loaded. Alternatively, click the Tools menu to confirm that Java Console is there.

Notes

The classic plugin file was located here:

JRE/plugin/i386/javaplugin-oji.so

This file should no longer be used and all symbolic links to it should be removed.

See http://www.oracle.com/technetwork/java/javase/certconfig-2095354.html#browsers for a list of supported browsers.

Contents    Previous    Next

Oracle and/or its affiliates Copyright © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Contact Us