Because I wanted to play Minecraft (on a PC Windows 7) and when I wanted to update it there was: Error java could not be found
And then you can either close the message or delete the java path. But that does not help and I can't play Minecraft anymore.
Have you ever looked if Windows 7 supports the latest or required Java version at all? Otherwise reinstall Java or delete the .minecraft folder under% appdata%.
+ delete the path once in the error message.
Do you even have Java installed and if so, which version?
Apparently you have no Java installed. Here you can install Java: https://java.com/.../download/