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

Method 1 of 2:

Google Chrome

32-bit Oracle Java instructions:

  1. How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux Picture 1
    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. How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux Picture 2
    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. How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux Picture 3
    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. How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux Picture 4
    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. How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux Picture 5
    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. How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux Picture 6
    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. How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux Picture 7
    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. How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux Picture 8
    Restart your web browser and go to Java Tester to test if Java is functioning in your web browser.
4.2 ★ | 5 Vote

May be interested

  • How to install Java on a Raspberry PiHow to install Java on a Raspberry Pi
    there are two different java implementations, oracle java and openjdk. this tutorial explains how to install java (openjdk) on a raspberry pi with the latest raspbian operating system running on it.
  • How to Install Java on LinuxHow to Install Java on Linux
    this wikihow teaches you how to install the latest version of the java runtime environment (jre) on a computer running linux. open the [https://www.java.com/en/download/linux_manual.jsp java for linux download page]. you'll see several...
  • How to enable minimize on click in UbuntuHow to enable minimize on click in Ubuntu
    many ubuntu users who come to linux after switching from windows are having to find a way to make their new linux system minimize open windows when clicking on the taskbar icon or the corresponding toolbar.
  • 8 ways Ubuntu changes and improves Linux8 ways Ubuntu changes and improves Linux
    ubuntu is the most prominent linux distribution in the world. ubuntu and its developer, canonical, have been plagued by a lot of fuss over the years, but the linux world is getting much better thanks to both.
  • Tips and tricks after installing UbuntuTips and tricks after installing Ubuntu
    ubuntu is one of the completely free open source operating systems. this is a distribution (distro) of linux with the second highest amount of traffic after linux mint.
  • Google blacklisted some web browsers on Linux, blocking access to Google servicesGoogle blacklisted some web browsers on Linux, blocking access to Google services
    google has issued a notice banning a number of popular linux browsers from signing in to its services.
  • 12 best Linux server operating systems12 best Linux server operating systems
    although linux operating systems provide a great desktop environment, linux can also successfully complete the task of a server. linux often provides advanced permissions, increasing flexibility and stability.
  • How to turn off Java to improve securityHow to turn off Java to improve security
    the us department of homeland security has just advised internet users to turn off java on their browsers. the reason given is that a lot of vulnerabilities in this tool can cause hackers to steal important information.
  • 7 Enterprise Linux Server Distributions7 Enterprise Linux Server Distributions
    the newest entrants to the linux team are businesses looking for stable and secure distributions to enhance their production cycles.
  • How to Install the Java Software Development KitHow to Install the Java Software Development Kit
    before you can create and modify java programs, you'll need the java software development kit. you can download the kit (also known as java sdk or jdk) for free from oracle as a single installer file, which makes installation quick and...