Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

askthedev.com Logo askthedev.com Logo
Sign InSign Up

askthedev.com

Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Ubuntu
  • Python
  • JavaScript
  • Linux
  • Git
  • Windows
  • HTML
  • SQL
  • AWS
  • Docker
  • Kubernetes
Home/ Questions/Q 16147
Next
In Process

askthedev.com Latest Questions

Asked: September 27, 20242024-09-27T09:19:12+05:30 2024-09-27T09:19:12+05:30In: Ubuntu

How can I install Java Runtime Environment (JRE) 8 on my Ubuntu system?

anonymous user

I’ve been trying to get Java Runtime Environment (JRE) 8 set up on my Ubuntu system, and honestly, it’s been quite a ride. I mean, I sort of know my way around the terminal, but this JRE installation is giving me more headaches than I anticipated.

So here’s the deal: I need JRE 8 because I’ve got a couple of legacy applications that just refuse to run without it. I’ve read some guides online, but they all seem to throw me in different directions. Some say to use the repository, while others suggest downloading it straight from the Oracle website. Honestly, I’m a little lost at this point.

I tried to follow one guide where they said I could just install it via the terminal using an APT command. Something like `sudo apt install default-jre`, but that didn’t specify JRE 8. I don’t want to install the latest version because these applications I mentioned are pretty finicky and only work with this specific version of JRE.

Then I stumbled upon some posts suggesting that I could download a tar.gz file from Oracle, but when I checked out that route, the installation steps seemed all over the place. I had to uncompress the file and set up environmental variables. To be honest, that sounds a little intimidating.

If you’ve been through this frustrating process, how did you manage to get JRE 8 up and running on your Ubuntu system? Is it easier to go through the repository or just bite the bullet and download it from the Oracle site? I would really appreciate any step-by-step guidance or tips you have. Maybe if you have a command line incantation that worked for you, that’d be a lifesaver! Seriously, any help would be amazing because I just want to get this done and finally run my applications without stumbling. Thanks a ton!

  • 0
  • 0
  • 2 2 Answers
  • 0 Followers
  • 0
Share
  • Facebook

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Continue with Google
    or use

    Forgot Password?

    Need An Account, Sign Up Here
    Continue with Google

    2 Answers

    • Voted
    • Oldest
    • Recent
    1. anonymous user
      2024-09-27T09:19:13+05:30Added an answer on September 27, 2024 at 9:19 am




      Setting Up JRE 8 on Ubuntu

      Getting JRE 8 on Ubuntu: A Simple Guide

      Sounds like you’ve hit a bit of a wall trying to get JRE 8 set up. No worries, you’re not alone! Here’s a straightforward way to get it done without going too deep into the rabbit hole.

      Option 1: Installing from Oracle

      Yeah, downloading from Oracle can feel a bit more complicated, but if you’ve got to stick to JRE 8, this might be the way to go. Here’s how to do it:

      1. First, head over to the Oracle JRE 8 Archive Downloads page.
      2. You’ll need to accept the license agreement and download the correct tar.gz file for your system (make sure it’s for Linux).
      3. Once downloaded, open your terminal and navigate to the folder where you downloaded the file. You can use cd ~/Downloads or whatever the path is.
      4. Unpack the tar file with this command:
      5. tar -xzf jre-8uXX-linux-x64.tar.gz
      6. Next, you’ll want to move JRE to a more appropriate directory, like /opt:
      7. sudo mv jre1.8.0_XX /opt/jre8
      8. Now, set up the environment variables by editing the ~/.bashrc file:
      9. nano ~/.bashrc
      10. Add these lines at the end of the file:
      11. export JAVA_HOME=/opt/jre8
        export PATH=$JAVA_HOME/bin:$PATH
      12. Save the file (CTRL+O, then ENTER, and exit with CTRL+X).
      13. Finally, refresh your bash configuration with:
      14. source ~/.bashrc
      15. Check if it’s working by running:
      16. java -version
      17. You should see JRE 8 listed. Boom! You’re done!

      Option 2: Using the Repository

      If you’re feeling like taking a simpler approach, using the repository is slightly easier, but it might not always give you JRE 8:

      1. Open your terminal.
      2. Run:
      3. sudo apt update
        sudo apt install openjdk-8-jre
      4. Check if it installed correctly with java -version.
      5. Just a heads up: sometimes, if you need Oracle’s JRE specifically, this might not be enough. But it’s worth a shot if you’re looking for ease.

      Final Thoughts

      If your apps are strictly needing JRE 8, the Oracle download route is probably your best bet, even if it sounds a bit intimidating. But once you get through the setup, you should be good to go! Best of luck with those legacy applications!


        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. anonymous user
      2024-09-27T09:19:14+05:30Added an answer on September 27, 2024 at 9:19 am


      To install Java Runtime Environment (JRE) 8 on your Ubuntu system, it’s generally recommended to download the JRE directly from the Oracle website for compatibility with legacy applications. While using the APT command like `sudo apt install default-jre` is quick, it typically installs the latest version of Java, which may not work with your specific applications. Instead, visit the Oracle JRE download page, where you can find the JRE 8 tar.gz file. After downloading, open your terminal and navigate to the directory where the file has been downloaded. Use the command `tar -zxvf jre-8uXX-linux-x64.tar.gz` (replace `XX` with the specific update version) to extract the files.

      Once extracted, move the `jre1.8.0_XX` directory to `/usr/local/java` or another directory of your choice. Then, set up your environment variables by editing your `~/.bashrc` file: add `export JAVA_HOME=/usr/local/java/jre1.8.0_XX` and `export PATH=$PATH:$JAVA_HOME/bin`. After making these changes, run `source ~/.bashrc` to apply them. Finally, confirm your installation by running `java -version`, which should display the correct JRE version. This step-by-step approach ensures that JRE 8 is installed properly without mishaps, enabling your legacy applications to run seamlessly.


        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Related Questions

    • I'm having trouble installing the NVIDIA Quadro M2000M driver on Ubuntu 24.04.1 LTS with the current kernel. Can anyone provide guidance or solutions to this issue?
    • What steps can I take to troubleshoot high usage of GNOME Shell in Ubuntu 24.04?
    • I recently performed a fresh installation of Ubuntu 24.04, and I've noticed that my RAM usage steadily increases over time until my system becomes unresponsive. Has anyone experienced this issue ...
    • How can I resolve the "unknown filesystem" error that leads me to the GRUB rescue prompt on my Ubuntu system?
    • I'm experiencing an issue with Ubuntu 24.04 where Nautilus fails to display the progress indicator when I'm copying large files or folders. Has anyone else encountered this problem, and what ...

    Sidebar

    Related Questions

    • I'm having trouble installing the NVIDIA Quadro M2000M driver on Ubuntu 24.04.1 LTS with the current kernel. Can anyone provide guidance or solutions to this ...

    • What steps can I take to troubleshoot high usage of GNOME Shell in Ubuntu 24.04?

    • I recently performed a fresh installation of Ubuntu 24.04, and I've noticed that my RAM usage steadily increases over time until my system becomes unresponsive. ...

    • How can I resolve the "unknown filesystem" error that leads me to the GRUB rescue prompt on my Ubuntu system?

    • I'm experiencing an issue with Ubuntu 24.04 where Nautilus fails to display the progress indicator when I'm copying large files or folders. Has anyone else ...

    • How can I configure a server running Ubuntu to bind specific IP addresses to two different network interfaces? I'm looking for guidance on how to ...

    • Is it possible to configure automatic login on Ubuntu MATE 24.04?

    • After upgrading from Ubuntu Studio 22.04 to 24.04.1, I lost all audio functionality. What steps can I take to diagnose and resolve this issue?

    • I am experiencing issues booting Ubuntu 22.04 LTS from a live USB. Despite following the usual procedures, the system fails to start. What steps can ...

    • I'm encountering a problem with my Expandrive key while trying to update my Ubuntu system. Has anyone else faced similar issues, and if so, what ...

    Recent Answers

    1. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    2. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    3. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    4. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    5. anonymous user on How can I update the server about my hotbar changes in a FabricMC mod?
    • Home
    • Learn Something
    • Ask a Question
    • Answer Unanswered Questions
    • Privacy Policy
    • Terms & Conditions

    © askthedev ❤️ All Rights Reserved

    Explore

    • Ubuntu
    • Python
    • JavaScript
    • Linux
    • Git
    • Windows
    • HTML
    • SQL
    • AWS
    • Docker
    • Kubernetes

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.