# How do I install the necessary JRE to run Minecraft [duplicate]

I am trying to install JRE 8 to use minecraft, but I got a .tar.gz file. I have extracted the file, it is called JRE1.8.0_201 on my desktop, but I don't know what to do. Can I please have some help here? The guides I have looked at don't show what to do in a clear way.

sudo apt install openjdk-8-jre

sudo apt install openjdk-11-jre