How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux

This document covers enabling 32-bit and 64-bit Oracle Java browser plugin in 32-bit Ubuntu Linux and 64-bit Ubuntu Linux. For the two most popular web browsers for Ubuntu Linux at this time, which are Google Chrome and Mozilla Firefox....

Method 1 of 2:

Google Chrome

32-bit Oracle Java instructions:

  1. Picture 1 of How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux
    Issue the following commands.
    1. Type/Copy/Paste: sudo mkdir /opt/google/chrome/plugins
      1. this will create a directory called /opt/google/chrome/plugins
    2. Type/Paste/Copy: cd /opt/google/chrome/plugins
      1. this will change you into the google chrome plugins directory,make sure you are in this directory before you make the symbolic link
    3. Type/Paste/Copy: sudo ln -s /usr/local/java/jre1.7.0_40/lib/i386/libnpjp2.so
      1. this will create a symbolic link from the Java JRE( Java Runtime Environment ) plugin libnpjp2.so to your Google Chrome web browser

64-bit Oracle Java instructions:

  1. Picture 2 of How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux
    Issue the following commands.
    1. Type/Copy/Paste: sudo mkdir /opt/google/chrome/plugins
      1. this will create a directory called /opt/google/chrome/plugins
    2. Type/Paste/Copy: cd /opt/google/chrome/plugins
      1. this will change you into the google chrome plugins directory,make sure you are in this directory before you make the symbolic link
    3. Type/Paste/Copy: sudo ln -s /usr/local/java/jre1.7.0_40/lib/amd64/libnpjp2.so
      1. this will create a symbolic link from the Java JRE( Java Runtime Environment ) plugin libnpjp2.so to your Google Chrome web browser

Reminders:

  1. Picture 3 of How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux
    Note: Sometimes when you issue the above command you may receive a message which states:
    1. ln: creating symbolic link `./libnpjp2.so': File exists
    2. To correct this issue simply remove the previous symbolic link using the following command:
    3. Type/Copy/Paste: cd /opt/google/chrome/plugins
    4. Type/Copy/Paste: sudo rm -rf libnpjp2.so
    5. Make sure you are in the /opt/google/chrome/plugins directory before you issue the command
  2. Picture 4 of How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux
    Restart your web browser and go to Java Tester to test if Java is functioning in your web browser.
Method 2 of 2:

Mozilla Firefox

32-bit Oracle Java instructions:

  1. Picture 5 of How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux
    Issue the following commands.
    1. Type/Paste/Copy: cd /usr/lib/mozilla/plugins
      1. this will change you into the directory /usr/lib/mozilla/plugins, create this directory if you do not have it
    2. Type/Paste/Copy: sudo mkdir /usr/lib/mozilla/plugins
      1. this will create the directory /usr/lib/mozilla/plugins, make sure you are in this directory before you make the symbolic link
    3. Type/Paste/Copy: sudo ln -s /usr/local/java/jre1.7.0_40/lib/i386/libnpjp2.so
      1. this will create a symbolic link from the Java JRE( Java Runtime Environment ) plugin libnpjp2.so to your Mozilla Firefox web browser

64-bit Oracle Java instructions:

  1. Picture 6 of How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux
    Issue the following commands.
    1. Type/Paste/Copy: cd /usr/lib/mozilla/plugins
      1. this will change you into the directory /usr/lib/mozilla/plugins, create this directory if you do not have it
    2. Type/Paste/Copy: sudo mkdir /usr/lib/mozilla/plugins
      1. this will create the directory /usr/lib/mozilla/plugins, make sure you are in this directory before you make the symbolic link
    3. Type/Paste/Copy: sudo ln -s /usr/local/java/jre1.7.0_40/lib/amd64/libnpjp2.so
      1. this will create a symbolic link from the Java JRE( Java Runtime Environment ) plugin libnpjp2.so to your Mozilla Firefox web browser

Reminders:

  1. Picture 7 of How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux
    Note: Sometimes when you issue the above command you may receive a message which states:
    1. ln: creating symbolic link `./libnpjp2.so': File exists
    2. To correct this issue simply remove the previous symbolic link using the following command:
    3. Type/Copy/Paste: cd /usr/lib/mozilla/plugins
    4. Type/Copy/Paste: sudo rm -rf libnpjp2.so
    5. Make sure you are in the /usr/lib/mozilla/plugins directory before you issue the command
  2. Picture 8 of How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux
    Restart your web browser and go to Java Tester to test if Java is functioning in your web browser.
Update 04 March 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile