If you download and install the latest Minecraft.deb package from minecraft.net, all necessary dependencies will be installed, including jre 8.
To install jre 8 manually, you can use the version available in pre-configured apt sources:
sudo apt install openjdk-8-jre
And to install the latest jre:
sudo apt install openjdk-11-jre
Answer from Broadsworde on askubuntu.com[How To]: Install Minecraft & Basic Modding on Linux/Ubuntu - Discussion - Minecraft: Java Edition - Minecraft Forum - Minecraft Forum
How to run Minecraft 1.17 under Feodra or Ubuntu Based Linux Distros (Java 16 install)
Getting Minecraft
How can you install java for minecraft?
Videos
Most of you don't use Linux and this won't be much use for you but I wanted to leave this here for people who do. Trying to search up how to do this has been a pain.
Ubuntu
Open your terminal and type java --version here you can see if java is installed on your system or what version is installed. If it is not installed you will be presented with a list of options. If you see openjdk-16-jre-headless then you're good to continue.
In the terminal run sudo apt install default-jre openjdk-16-jre-headless hit enter and type your password and enter again. After that you should be golden.
Fedora
Open your terminal.
If you have an AMD CPU type sudo dnf install java-latest-openjdk.x86_64
If you have an Intel CPU type sudo dnf install java-latest-openjdk.i686
Fedora comes with Java 11 installed by default. Because of this the system will not use the version you installed yet. We can fix that easily.
Type sudo alternatives --config java This will give you two options and ask you to enter a number for the version you want to use. Typically it's 2 but read to make sure you are selecting java-latest. Once you enter the number the system should be using the version you installed.
One thing to note as far as I know you can't run Jar files under Fedora. I'm not sure why that is but installing a mod like fabric and forge that way won't work. I'd suggest using GDLauncher or a similar program that handles installing mods for you.
GDLauncher
If you already use GDLauncher you might have found that there are problems running fabric with 1.17. Normally the app will install java for you but as if now it's not downloading the correct version. After you have installed 16 through one of them methods you should go to settings.
In there you wan't to disable autodetect java. In the box below it just type /bin/java that will direct it to use the one you installed instead. This hopefully should fix your issue.
I know normally we don't need to bother with this sort of thing but the Java 16 requirement has introduced a few problems. Hopefully this helps a few of you or this post comes across in a google search about the issue.
Does anyone know how to install Minecraft. Only game I play on windows and it's not available here. Please someone help meeee