• About
  • Contact
  • Cookie
  • Disclaimer
  • Privacy Policy
  • Change the purpose of use

Tnhelearning.edu.vn - Various useful general information portal

  • Photo
  • Bio
  • How To
  • Tech

How to Install Oracle Java JRE on Ubuntu Linux

January 14, 2024 by admin Category: How To

You are viewing the article How to Install Oracle Java JRE on Ubuntu Linux  at Tnhelearning.edu.vn you can quickly access the necessary information in the table of contents of the article below.

X

wikiHow is a “wiki” site, which means that many of the articles here are written by multiple authors. To create this article, 14 people, some of whom are anonymous, have edited and improved the article over time.

This article has been viewed 3,482 times.

In this article, wikiHow will show you how to install 32-bit and 64-bit Oracle Java 7 JRE (at the time of this article, latest version is 1.8.0_73 ) on 32-bit Ubuntu operating system and 64-bit. This guide also works for Debian and Linux Mint operating systems. Derived from the request of many users who just want to know how to install Oracle Java JRE on Ubuntu, this article is dedicated to those who just want to install Oracle Java JRE on Debian-based Linux computers like Debian, Ubuntu and Linux Mint. You will only be able to run and execute Java programs, but not develop and program in Java. In addition, we also have a section to talk about how to use the Oracle Java JRE in your browser using this method. You can apply for Debian, Ubuntu and Linux Mint.

Table of Contents

  • Steps
  • Optional: How to enable Oracle Java in the browser
  • Google Chrome
    • Instructions for 32-bit Oracle Java:
    • Instructions for Oracle Java 64-bit:
    • Reminder:
  • Mozilla Firefox
    • Instructions for 32-bit Oracle Java:
    • Instructions for Oracle Java 64-bit
    • Reminder:

Steps

Image titled Install Oracle Java JRE on Ubuntu Linux Step 1

Image titled Install Oracle Java JRE on Ubuntu Linux Step 1

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/f/f7/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-1-Version-2.jpg/v4- 728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-1-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/f/f7/ Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-1-Version-2.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-1-Version-2. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Check to see if your Ubuntu Linux OS architecture is 32-bit or 64-bit. Open a terminal and run the command below.

  • Type/Copy/Paste: file /sbin/init
    • Note down your Ubuntu Linux OS texture bit version: it will be displayed here.
Image titled Install Oracle Java JRE on Ubuntu Linux Step 2

Image titled Install Oracle Java JRE on Ubuntu Linux Step 2

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/9/93/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-2.jpg/v4-728px-Install- Oracle-Java-JRE-on-Ubuntu-Linux-Step-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/9/93/Install-Oracle-Java-JRE- on-Ubuntu-Linux-Step-2.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-2.jpg”,”smallWidth”:460,”smallHeight”:345,” bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Check if your computer has Java installed or not. To do so, you will have to run the java-version command from the terminal.

  • Open a command line window and enter the following command:
    • Type/Copy/Paste: java -version
  • If OpenJDK is already installed, the output will be similar to this:
    • java version “1.7.0_15”
      OpenJDK Runtime Environment (IcedTea6 1.10pre) (6b15~pre1-0lucid1)
      OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
  • If OpenJDK is already installed on your computer, you have a vendor version that is not intended for this article.
Image titled Install Oracle Java JRE on Ubuntu Linux Step 3

Image titled Install Oracle Java JRE on Ubuntu Linux Step 3

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/d/d5/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-3.jpg/v4-728px-Install- Oracle-Java-JRE-on-Ubuntu-Linux-Step-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/d/d5/Install-Oracle-Java-JRE- on-Ubuntu-Linux-Step-3.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-3.jpg”,”smallWidth”:460,”smallHeight”:345,” bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Completely remove OpenJDK/JRE from the computer and create a directory to store the Oracle JRE binaries. This will avoid conflicts and confusion between different vendor versions of Java. For example, if you have OpenJDK/JRE installed on your machine, you can remove the following three commands:

  • Type/Copy/Paste: sudo apt-get purge openjdk-*
    • This command will completely remove OpenJDK/JRE from your computer
  • Type/Copy/Paste: sudo mkdir -p /usr/local/java
    • This command will create a directory to store the Oracle Java JDK and JRE binaries.
Image titled Install Oracle Java JRE on Ubuntu Linux Step 4

Image titled Install Oracle Java JRE on Ubuntu Linux Step 4

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/a/a1/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-4.jpg/v4-728px-Install- Oracle-Java-JRE-on-Ubuntu-Linux-Step-4.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/a/a1/Install-Oracle-Java-JRE- on-Ubuntu-Linux-Step-4.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-4.jpg”,”smallWidth”:460,”smallHeight”:345,” bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Download the Oracle Java JRE for Linux . Make sure you have selected the correct compressed binary for your 32- or 64-bit operating system (this file has the tar.gz extension).

  • If you are using a 32-bit Ubuntu Linux operating system, you will download the 32-bit Oracle Java binary.
  • If you are using 64-bit Ubuntu Linux, you will download the 64-bit Oracle Java binary.
  • Optional: Download the Oracle Java JDK/JRE Documentation .
    • Select jdk-7u40-apidocs.zip
  • Important Information: The 64-bit Oracle Java binaries do not run on 32-bit Ubuntu Linux operating systems – when trying to install Oracle Java 64-bit on this operating system, you will receive various error messages.
READ More:   How to Convert XML to Excel
Image titled Install Oracle Java JRE on Ubuntu Linux Step 5

Image titled Install Oracle Java JRE on Ubuntu Linux Step 5

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/9/9b/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-5-Version-2.jpg/v4- 728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-5-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/9/9b/ Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-5-Version-2.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-5-Version-2. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Copy the Oracle Java binary to the /usr/local/java directory. In most cases, this data will be downloaded: /home/ “your_username” /Downloads.

  • Instructions for installing 32-bit Oracle Java on 32-bit Ubuntu Linux operating system:
    • Type/Copy/Paste: cd /home/ “your_username” /Downloads
    • Type/Copy/Paste: sudo cp -r jre-8u73-linux-i586.tar.gz /usr/local/java
    • Type/Copy/Paste: cd /usr/local/java
  • Instructions for installing 64-bit Oracle Java on 64-bit Ubuntu Linux operating system:
    • Type/Copy/Paste: cd /home/ “your_username” /Downloads
    • Type/Copy/Paste: sudo cp -r jre-8u73-linux-x64.tar.gz /usr/local/java
    • Type/Copy/Paste: cd /usr/local/java
Image titled Install Oracle Java JRE on Ubuntu Linux Step 6

Image titled Install Oracle Java JRE on Ubuntu Linux Step 6

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/b/be/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-6-Version-2.jpg/v4- 728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-6-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/b/be/ Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-6-Version-2.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-6-Version-2. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Run the following commands on the downloaded Oracle Java tar.gz file. Make sure you’re doing this with root (root) access to make it work for all users on the machine. To open a command line window with full access, type sudo -s: you will be asked for a login password.

  • Instructions for installing 32-bit Oracle Java on 32-bit Ubuntu Linux:
    • Type/Copy/Paste: sudo chmod a+x jre-8u73-linux-i586.tar.gz
  • Instructions to install Oracle Java 64-bit on Ubuntu Linux 64-bit:
    • Type/Copy/Paste: sudo chmod a+x jre-8u73-linux-x64.tar.gz
Image titled Install Oracle Java JRE on Ubuntu Linux Step 7

Image titled Install Oracle Java JRE on Ubuntu Linux Step 7

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/4/40/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-7-Version-2.jpg/v4- 728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-7-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/4/40/ Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-7-Version-2.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-7-Version-2. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Open the compressed Java dataset in the /usr/local/java . directory

  • Instructions for installing 32-bit Oracle Java on 32-bit Ubuntu Linux:
    • Type/Copy/Paste: sudo tar xvzf jre-8u73-linux-i586.tar.gz
  • Instructions to install Oracle Java 64-bit on Ubuntu Linux 64-bit:
    • Type/Copy/Paste: sudo tar xvzf jre-8u73-linux-x64.tar.gz
Image titled Install Oracle Java JRE on Ubuntu Linux Step 8

Image titled Install Oracle Java JRE on Ubuntu Linux Step 8

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/b/b0/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-8-Version-2.jpg/v4- 728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-8-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/b/b0/ Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-8-Version-2.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-8-Version-2. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Check the folders again. By this point, there should be an uncompressed binary directory at /usr/local/java for the Java JDK/JRE listed as follows:

  • Type/Copy/Paste: ls -a
  • jre1.8.0_73
Image titled Install Oracle Java JRE on Ubuntu Linux Step 9

Image titled Install Oracle Java JRE on Ubuntu Linux Step 9

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/8/86/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-9-Version-2.jpg/v4- 728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-9-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/8/86/ Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-9-Version-2.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-9-Version-2. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Edit the /etc/profile system path and add the following system variables to this path. Use nano, gedit or any other text editor, with priority access, to open /etc/profile.

  • Type/Copy/Paste: sudo gedit /etc/profile
  • or
  • Type/Copy/Paste: sudo nano /etc/profile
Image titled Install Oracle Java JRE on Ubuntu Linux Step 10

Image titled Install Oracle Java JRE on Ubuntu Linux Step 10

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/4/43/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-10-Version-2.jpg/v4- 728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-10-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/4/43/ Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-10-Version-2.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-10-Version-2. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Scroll to the bottom of the file with the arrow keys and add the following lines to the end of your /etc/profile file:

  • Type/Copy/Paste:

    JAVA_HOME=/usr/local/java/ jre1.8.0_73
    PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
    export JAVA_HOME
    export PATH

Image titled Install Oracle Java JRE on Ubuntu Linux Step 11

Image titled Install Oracle Java JRE on Ubuntu Linux Step 11

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/7/73/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-11-Version-2.jpg/v4- 728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-11-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/7/73/ Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-11-Version-2.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-11-Version-2. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Save the file /etc/profile and exit.
Image titled Install Oracle Java JRE on Ubuntu Linux Step 12

Image titled Install Oracle Java JRE on Ubuntu Linux Step 12

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/6/67/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-12.jpg/v4-728px-Install- Oracle-Java-JRE-on-Ubuntu-Linux-Step-12.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/6/67/Install-Oracle-Java-JRE- on-Ubuntu-Linux-Step-12.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-12.jpg”,”smallWidth”:460,”smallHeight”:345,” bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Notify your Ubuntu Linux computer of the location of the Oracle Java JRE. As a result, the system will understand that the new version of Oracle Java is ready to use.

  • Type/Copy/Paste: sudo update-alternatives –install “/usr/bin/java” “java” “/usr/local/java/jre1.8.0_73/bin/java” 1
    • this command tells the system that the Oracle Java JRE is ready to use
  • Type/Copy/Paste: sudo update-alternatives –install “/usr/bin/javaws” “javaws” “/usr/local/java/jre1.8.0_73/bin/javaws” 1
    • This command tells the system that Oracle Java Web is available
Image titled Install Oracle Java JRE on Ubuntu Linux Step 13

Image titled Install Oracle Java JRE on Ubuntu Linux Step 13

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/4/4a/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-13.jpg/v4-728px-Install- Oracle-Java-JRE-on-Ubuntu-Linux-Step-13.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/4/4a/Install-Oracle-Java-JRE- on-Ubuntu-Linux-Step-13.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-13.jpg”,”smallWidth”:460,”smallHeight”:345,” bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Notifies the Ubuntu Linux computer that the Oracle Java JRE is the default Java.

  • Type/Copy/Paste: sudo update-alternatives –set java /usr/local/java/jre1.8.0_73/bin/java
    • This is the command to set up the Java runtime environment for the system.
  • Type/Copy/Paste: sudo update-alternatives –set javaws /usr/local/java/jre1.8.0_73/bin/javaws
    • This is the command to set up Java Web startup on the computer.
READ More:   How to Accept Your Weaknesses
Image titled Install Oracle Java JRE on Ubuntu Linux Step 14

Image titled Install Oracle Java JRE on Ubuntu Linux Step 14

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/f/f7/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-14-Version-2.jpg/v4- 728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-14-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/f/f7/ Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-14-Version-2.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-14-Version-2. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Reload the /etc/profile system path with the following command:

  • Type/Copy/Paste: . /etc/profile
  • Note down the path the /etc/profile file will be reloaded after restarting the computer.
Image titled Install Oracle Java JRE on Ubuntu Linux Step 15

Image titled Install Oracle Java JRE on Ubuntu Linux Step 15

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/a/ae/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-15-Version-2.jpg/v4- 728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-15-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/a/ae/ Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-15-Version-2.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-15-Version-2. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Check if Oracle Java is installed correctly. Run the following commands and record the Java version:
Image titled Install Oracle Java JRE on Ubuntu Linux Step 16

Image titled Install Oracle Java JRE on Ubuntu Linux Step 16

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/a/a3/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-16-Version-2.jpg/v4- 728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-16-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/a/a3/ Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-16-Version-2.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-16-Version-2. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Once installed successfully, with Oracle Java 32-bit:

  • Type/Copy/Paste: java -version
    • This command will show the Java version on your machine
  • The following message will be displayed:
    • java version (java version) “1.8.0_05”
      Java(TM) SE Runtime Environment (build (version) 1.8.0_05-b18)
      Java HotSpot(TM) Server VM (build (version) 24.45-b08, mixed mode)
Image titled Install Oracle Java JRE on Ubuntu Linux Step 17

Image titled Install Oracle Java JRE on Ubuntu Linux Step 17

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/1/1d/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-17-Version-2.jpg/v4- 728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-17-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/1/1d/ Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-17-Version-2.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-17-Version-2. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
On successful installation, with Oracle Java 64-bit:

  • Type/Copy/Paste: java -version
    • This command will show the Java version running on your machine
  • The following message will be displayed:
    • java version (java version) “1.8.0_73”
      Java(TM) SE Runtime Environment (build (version) 1.8.0_05-b18)
      Java HotSpot(TM) 64-Bit Server VM (build (version) 24.45-b08, mixed mode)
  • Image titled Install Oracle Java JRE on Ubuntu Linux Step 18

    Image titled Install Oracle Java JRE on Ubuntu Linux Step 18

    {“smallUrl”:”https://www.wikihow.com/images_en/thumb/3/36/Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-18-Version-2.jpg/v4- 728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-18-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/3/36/ Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-18-Version-2.jpg/v4-728px-Install-Oracle-Java-JRE-on-Ubuntu-Linux-Step-18-Version-2. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
    Congratulations, you have just successfully installed the Oracle Java JRE on your Linux computer. Now restart the computer. After rebooting, the computer is configured to run Java programs.
  • Optional: How to enable Oracle Java in the browser

  • To enable Java plug-ins on a web browser, you must create a soft link from your browser’s plug-ins directory to the Java plug-in location in your Oracle Java instance.
  • Important Note: Be careful when enabling Java 8 in your browser because of the multitude of vulnerabilities and security flaws. In particular, with Oracle Java 8 enabled on the browser, when a vulnerability or security error is discovered, it will be a way for bad guys to infiltrate and damage your system. For more information about vulnerabilities and security flaws in Java, you can refer to the website: Java Tester

    Google Chrome

    Instructions for 32-bit Oracle Java:

  • Create the following commands.
    • Type/Copy/Paste: sudo mkdir -p /opt/google/chrome/plugins
      • The directory /opt/google/chrome/plugins will be initialized.
    • Type/Copy/Paste: cd /opt/google/chrome/plugins
      • You will be redirected to the Google Chrome add-ons folder. Make sure you are in this correct directory before creating the soft link.
    • Type/Copy/Paste: sudo ln -s /usr/local/java/jre1.8.0_73/lib/ i386 / libnpjp2.so
      • A software link from the Java JRE (Java-written applications environment) plug-in libnpjp2.so to your Google Chrome browser will be initialized.
  • Instructions for Oracle Java 64-bit:

  • Execute the following commands.
    • Type/Copy/Paste: sudo mkdir -p /opt/google/chrome/plugins
      • The directory /opt/google/chrome/plugins will be initialized.
    • Type/Copy/Paste: cd /opt/google/chrome/plugins
      • You will be redirected to the Google Chrome add-ons folder. Make sure you are in this correct directory before creating the soft link.
    • Type/Copy/Paste: sudo ln -s /usr/local/java/jre1.8.0_05/lib/ amd64 / libnpjp2.so
      • A software link from the Java JRE (Java-Scripted Applications Environment) plug -in libnpjp2.so to the Google Chrome browser will be initialized.
  • Reminder:

  • Note: Sometimes you will get the following message when executing the above command:
    • ln: creating symbpic link `./libnpjp2.so’: File exists
    • To fix this, just remove the pre-existing soft link with 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 correct directory /opt/google/chrome/plugins and then run the command.
    READ More:   How to Make Pearls Bloom
  • Restart the browser and go to Java Tester to check if Java works in your browser.
  • Mozilla Firefox

    Instructions for 32-bit Oracle Java:

  • Execute the following commands.
    • Type/Copy/Paste: cd /usr/lib/mozilla/plugins
      • You will be redirected to the /usr/lib/mozilla/plugins directory. Please initialize if this directory does not exist.
    • Type/Copy/Paste: sudo mkdir -p /usr/lib/mozilla/plugins
      • The directory /usr/lib/mozilla/plugins will be initialized. Make sure you are in the correct directory before proceeding to create the soft link.
    • Type/Copy/Paste: sudo ln -s /usr/local/java/jre1.8.0_73/lib/ i386 / libnpjp2.so
      • The software link from the Java JRE (Java Application Runtime) plug-in libnpjp2.so to your Mozilla Firefox browser will be initialized.
  • Instructions for Oracle Java 64-bit

  • Execute the following commands.
    • Type/Copy/Paste: cd /usr/lib/mozilla/plugins
      • You will be redirected to the /usr/lib/mozilla/plugins directory. Please initialize if this directory does not exist.
    • Type/Copy/Paste: sudo mkdir -p /usr/lib/mozilla/plugins
      • The directory /usr/lib/mozilla/plugins will be initialized. Make sure you are in this correct directory before creating the soft link.
    • Type/Copy/Paste: sudo ln -s /usr/local/java/jre1.8.0_73/lib/ amd64 / libnpjp2.so
      • A soft link from the Java JRE (Java Application Runtime) plug -in libnpjp2.so to Mozilla Firefox will be initialized.
  • Reminder:

  • Note: Sometimes you will get the following message when running the above command:
    • ln: creating symbpic link `./libnpjp2.so’: File exists
    • To fix this, you just need to remove the pre-existing soft link with 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 correct directory /usr/lib/mozilla/plugins and then run the command
  • Restart the browser and go to Java Tester to check if Java works in your browser.
  • X

    wikiHow is a “wiki” site, which means that many of the articles here are written by multiple authors. To create this article, 14 people, some of whom are anonymous, have edited and improved the article over time.

    This article has been viewed 3,482 times.

    In this article, wikiHow will show you how to install 32-bit and 64-bit Oracle Java 7 JRE (at the time of this article, latest version is 1.8.0_73 ) on 32-bit Ubuntu operating system and 64-bit. This guide also works for Debian and Linux Mint operating systems. Derived from the request of many users who just want to know how to install Oracle Java JRE on Ubuntu, this article is dedicated to those who just want to install Oracle Java JRE on Debian-based Linux computers like Debian, Ubuntu and Linux Mint. You will only be able to run and execute Java programs, but not develop and program in Java. In addition, we also have a section to talk about how to use the Oracle Java JRE in your browser using this method. You can apply for Debian, Ubuntu and Linux Mint.

    Thank you for reading this post How to Install Oracle Java JRE on Ubuntu Linux at Tnhelearning.edu.vn You can comment, see more related articles below and hope to help you with interesting information.

    Related Search:

    Related Posts

    How to Create Curved Text in Photoshop
    How to fall asleep faster
    How to Install FBReader to Read eBooks

    Category: How To

    Previous Post: « Top 999+ govinda god images – Amazing Collection govinda god images Full 4K
    Next Post: Top 999+ maths quiz images – Amazing Collection maths quiz images Full 4K »

    Copyright © 2025 · Tnhelearning.edu.vn - Useful Knowledge