Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

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

Learn how to enable oracle java in your web browsers on ubuntu linux with clear steps, practical context, and useful troubleshooting guidance.

Table of Contents

This updated guide examines How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux and organizes the essential facts, background, and practical takeaways in clear American English.

Method 1of 2:

Google Chrome

32-bit Oracle Java instructions:

  1. How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux — contextual image 1 Issue the following commands.
    • Type/Copy/Paste: sudo mkdir /opt/google/chrome/plugins
      • this will create a directory called /opt/google/chrome/plugins
    • Type/Paste/Copy: cd /opt/google/chrome/plugins
      • this will change you into the google chrome plugins directory,make sure you are in this directory before you make the symbolic link
    • Type/Paste/Copy: sudo ln -s /usr/local/java/jre1.7.0_40/lib/ i386 / libnpjp2.so
      • 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 — contextual image 2 Issue the following commands.
    • Type/Copy/Paste: sudo mkdir /opt/google/chrome/plugins
      • this will create a directory called /opt/google/chrome/plugins
    • Type/Paste/Copy: cd /opt/google/chrome/plugins
      • this will change you into the google chrome plugins directory,make sure you are in this directory before you make the symbolic link
    • Type/Paste/Copy: sudo ln -s /usr/local/java/jre1.7.0_40/lib/ amd64 / libnpjp2.so
      • 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 — contextual image 3 Note: Sometimes when you issue the above command you may receive a message which states:
    • ln: creating symbolic link `./libnpjp2.so': File exists
    • To correct this issue simply remove the previous symbolic link using the following command:
    • Type/Copy/Paste: cd /opt/google/chrome/plugins
    • Type/Copy/Paste: sudo rm -rf libnpjp2.so
    • 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 — contextual image 4 Restart your web browser and go toJava Testerto test if Java is functioning in your web browser.

Method 2of 2:

Mozilla Firefox

32-bit Oracle Java instructions:

  1. How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux — contextual image 5 Issue the following commands.
    • Type/Paste/Copy: cd /usr/lib/mozilla/plugins
      • this will change you into the directory /usr/lib/mozilla/plugins, create this directory if you do not have it
    • Type/Paste/Copy: sudo mkdir /usr/lib/mozilla/plugins
      • this will create the directory /usr/lib/mozilla/plugins, make sure you are in this directory before you make the symbolic link
    • Type/Paste/Copy: sudo ln -s /usr/local/java/jre1.7.0_40/lib/ i386 / libnpjp2.so
      • 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 — contextual image 6 Issue the following commands.
    • Type/Paste/Copy: cd /usr/lib/mozilla/plugins
      • this will change you into the directory /usr/lib/mozilla/plugins, create this directory if you do not have it
    • Type/Paste/Copy: sudo mkdir /usr/lib/mozilla/plugins
      • this will create the directory /usr/lib/mozilla/plugins, make sure you are in this directory before you make the symbolic link
    • Type/Paste/Copy: sudo ln -s /usr/local/java/jre1.7.0_40/lib/ amd64 / libnpjp2.so
      • 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 — contextual image 7 Note: Sometimes when you issue the above command you may receive a message which states:
    • ln: creating symbolic link `./libnpjp2.so': File exists
    • To correct this issue simply remove the previous symbolic link using the following command:
    • Type/Copy/Paste: cd /usr/lib/mozilla/plugins
    • Type/Copy/Paste: sudo rm -rf libnpjp2.so
    • 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 — contextual image 8 Restart your web browser and go toJava Testerto test if Java is functioning in your web browser.

FAQ

What is How to Enable Oracle Java in Your Web Browsers on Ubuntu Linux about?

It provides a structured overview of plugins, explains the main context, and highlights practical takeaways for readers.

Why does this topic matter?

Understanding the main concepts helps readers evaluate the issue, avoid common mistakes, and make better-informed decisions.

How should readers use this information?

Use the guidance as a practical starting point, confirm details that may have changed, and follow current product, safety, or security recommendations.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.