How To Enable Java In Web Browser On Ubuntu Linux

Enable Java Plugin on Firefox. Enable and configure Java Plugin on Firefox and Chrome web browser. Follow these instructions to enable Java in your web browser on Ubuntu Linux.

Google Chrome

  • Become the root user by running the su command and then enter the super-user password.
    Type: sudo -s
  • Create a directory called plugins if you do not have it.
    Type: mkdir -p /opt/google/chrome/plugins
  • Go to Google chrome plugins directory before you make the symbolic link.
    Type: cd /opt/google/chrome/plugins
  • Create a symbolic link.
    Type: ln -s /usr/local/java/jre1.7.0/lib/amd64/libnpjp2.so
  • Restart your browser and test Java

Mozilla Firefox

  • Exit Firefox browser if it is already running.
  • 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.
  • Become the root user by running the su command and then enter the super-user password.
    Type: sudo -s
  • Create a directory called plugins if you do not have it.
    Type: mkdir -p /usr/lib/mozilla/plugins
  • Go to Mozilla plugins directory before you make the symbolic link.
    Type: cd /usr/lib/mozilla/plugins
  • Create a symbolic link to the libnpjp2.so file in the browser plugins directoryln -s /usr/local/java/jre1.7.0/lib/amd64/libnpjp2.so
    ln -s /usr/local/java/jre1.7.0/lib/i386/libnpjp2.so
  • Restart your browser and test Java

Example [Firefox]

    • If Firefox is installed at this directory:
      /usr/lib/<Firefox installation directory>
    • And if the Java is installed at this directory:
      /usr/java/<Java installation directory>
    • Then type in the terminal window to go to the browser plug-in directory:
      /usr/lib/<Firefox installation directory>/plugins
    • Enter the following command to create a symbolic link to the Java Plug-in for the Mozilla browser.
      ln -s /usr/java/<Java installation directory>/lib/i386/libnpjp2.so

You can also view support.mozilla.org for more help on using Java on Firefox.

Via Java | Oracle

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.