We all know that minecraft is a game developed from Java, as it is written in its logo from version 1.12.2, Minecraft Java Edition. That way it is necessary to have Java installed and updated to play the game, if you are having problems with java today I will teach you how to solve this problem.
Tutorial on MinecraftForum.
More Minecraft Mods at 7Minecraft
Step 1: Download and Install
First you will have to install Java, so go to the Java website by clicking here, you will see a big red button asking you to download it.
Step 2: Installation
After downloading Java install it, the process is very simple.
Step 3: Checking Java
After Install will open a page in your browser, asking to check the version of Java, make sure you have installed the latest version.
Step 4: Have a Great Game!
Now open your minecraft launcher and install the latest version, if you followed the tutorial correctly your Minecraft should work perfectly.