I just rebooted my computer without changing anything. Suddenly I can't open Eclipse. Instead, I get this error message:
┌──────────────────────────────────────────────────────────────────────┐
│ Eclipse │
├──────────────────────────────────────────────────────────────────────┤
│ │
│ A Java Runtime Environment (JRE) or Java Development Kit (JDK) │
│ must be available in order to run Eclipse. No Java virtual machine │
│ was found after searching the following locations: │
│ C:\Users\emiri\Downloads\eclipse\jre\bin\javaw.exe │
│ javaw.exe in your current PATH │
│ │
│ ┌────────────┐ │
│ │ OK │ │
│ └────────────┘ │
└──────────────────────────────────────────────────────────────────────┘
And I see all my environment variables have been erased. java
, javac
, mvn
, etc. don't work. What do I do now, and how do I fix this?