To install the game, go to minecraft.net/download and download the game client. You can download the game client even if you don't own the game, but you will only be able to play the demo mode. After downloading the client, double-click the icon to run it.
Please note that a Minecraft purchase is tied to your account (email address) and not a device. As such, you can download and install Minecraft: Java Edition on as many computers as you want.
To log in, use your email address and password (or username and password if you have an older account). Please make sure that you are connected to the internet, as the game will automatically download additional files the first time. After you have installed Minecraft and stored your account credentials, it’s possible to play with or without an internet connection.
Firewalls and antivirus programs can sometimes cause trouble during installation. If you're having trouble installing Minecraft, you may want to temporarily disable these types of programs and then re-install the game.
If you experience issues downloading or running Minecraft, please visit our technical support resources.