To play Minecraft on a Windows computer, you will need Java 8. You can download the software from our own website, although in practice you won't need it anyway. If you do not have Java, it will be installed automatically when installing the latest available version of Minecraft since the installer has its own version of the software, so you don’t need to worry about anything else. Naturally, previous versions of Minecraft also require earlier versions of Java. If this is your case, you should check the exact version of the game you have and find the minimum Java version you need to play.
The version of Java you have on your computer is very important for it to be correctly executed. Many users have reported bugs when they use non-updated versions or versions that do not match the architecture of their operating system (there are versions for 32-bit and 64-bit systems). It has also been reported that some computers crash if they have several versions of Java installed simultaneously.
Older versions of the game should work without any problem with any Java 5 or higher. Now, if once updated this tool you cannot play, the problem is elsewhere. Are your graphics card drivers updated to the latest version?
It should be remembered that Minecraft has two branches of development at the technical level: the Java version we are dealing with here, the first one that was created and that is available on Windows, Mac and Linux, and the Bedrock Edition version, available on smartphones and video game consoles. Players of different versions never meet during games.