Why does my minecraft do this?

Why does my minecraft do this?

Added (1). It has this box that says "The registry refers to a nonexistent Java Runtime Environment Installation or the runtime is corrupted.

The system can't find the file specified.

I don't know what i'm supposed to do…

Update java

Update java. If it doesn't work, uninstall java and reinstall it. If it still doesn't work, uninstall minecraft and reinstall it

Fix the JRE in your system.