Hi Erik Pons López.
Welcome to the Microsoft Community.
You want to download and install java normally. You mentioned that the computer restarted after you installed it. If you don't see any errors during the installation, then it proves that you have successfully installed java. I noticed that you said in the question that you tried to open it. Java is a code library called by a program, and it cannot be opened. Therefore, it is possible that you have installed java normally. You can confirm whether there is java on your computer and see the java version by the following methods:
- Press "win + R" to open "Run", enter "cmd" in "Run" and press "Ctrl + Shift + Enter" at the same time to open the command line window with administrator privileges.
- Enter the following command and press enter to run: java
If "java is not an internal or external command, nor is it an executable program or batch command." appears, it proves that the java installation failed.
If there are many contents guiding you to use the java command, it proves that the java installation is successful.
- Type the following two commands and press enter to run: java -version java --version
One of them will fail, the other will tell you your java version.
If your java installation does fail. I hope you can reply with the results of these commands and any error codes from the Java installer. There are many reasons why the Java installation may fail, and this information will help us better understand your problem.
Best Regards,
Raylan-MSFT | Microsoft Community Support Specialist