Linux Enable and configure Java

Source: Internet
Author: User

Firefox

When you install the Java platform, the Java plug-in file is included as part of the installation. To use Java in Firefox, you need to manually create a symbolic link from the plug-in file in that release to one of Firefox's expected locations. For Firefox version 21 and later, you must create a symbolic link in the home directory ~/.mozilla/plugins . Starting with Firefox version 21, creating symbolic links in subdirectories of the Firefox application directory is not supported plugins .

To configure Java Plugin, follow these steps:

    1. Exit the Firefox browser (if it is already running).
    2. Uninstall all previously installed Java plugins .
      Only one Java plug-in can be used at a time. If you want to use a different version of another plug-in or plug-in, remove the symbolic link to any other version and create a new symbolic link to the new version.

      Delete the plugins javaplugin-oji.so symbolic links to and from the Firefox directory libnpjp2.so (or move the links to a different directory).

    3. Create a symbolic link to a plugins Java plugin in the Firefox directory
      • Go to the Firefox plugins directory
        cd ~/.mozilla/plugins
        If the plugins directory does not exist, the directory is created.
      • Creating Symbolic Links
        32-bit plugins:
        ln -s Java installation directory /lib/i386/libnpjp2.so。
        64-bit plugins:
        ln -s Java installation directory /lib/amd64/libnpjp2.so .

      Example
      • If Java is installed in the following directory:
        /usr/java/Java installation directory
      • On the terminal window, type the following command to go to the browser's plug-in directory:
        cd ~/.mozilla/plugins/
      • Enter the following command to create a symbolic link to the Java plugin for Firefox:
        ln -s /usr/java/Java installation directory /lib/i386/libnpjp2.so .
    4. launches the Firefox browser and restarts if the browser is started.

      In the Firefox location bar, type about:plugins to confirm that the Java plugin is loaded. You can also click the Tools menu to confirm that the Java console exists.

Linux Enable and configure Java

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.