I don't understand why today I'm getting this error. All the java commands are not working. Reloaded window, reinstalled and still not working.


Figured out that language support for java from redhat is what broke things. Temporarily fixed by downgrading. Gonna log this issue there.
I think that is related with this: https://devblogs.microsoft.com/java/java-on-visual-studio-code-update-june-2020/
馃し
Just briefly recap the solution from redhat-developer/vscode-java#1543
This requirement is just asking you to install JDK 11 to run vscode-java extension itself, because it's also a Java program.
If you want to run your program at JDK 8, you can install both JDK 8 and JDK 11 in your machine, and configure them in the user settings below.
"java.home": "C:\\AdoptOpenJDK\\jdk-11.0.8.10-hotspot",
"java.configuration.runtimes": [
{
"default": true,
"name": "JavaSE-1.8",
"path": "C:\\Java\\openjdk8u181-b13",
}
]
what if we do not want to install jdk 11, is downgrading the only solution. Any other workarounds
@meatashu Is there any reason to prevent you from installing jdk 11?
If I understand correctly the situation (from https://github.com/microsoft/vscode-java-debug/issues/879, and from my experience), the situation is that JDK11 is downloaded and installed, then it is used for the PLS, but it is also used by the debugged process. In my personal case, I have an application that fails when running on JDK11 under the debugger.
I'd be very happy if I misunderstood the situation, though.
Most helpful comment
Just briefly recap the solution from redhat-developer/vscode-java#1543
This requirement is just asking you to install JDK 11 to run vscode-java extension itself, because it's also a Java program.
If you want to run your program at JDK 8, you can install both JDK 8 and JDK 11 in your machine, and configure them in the user settings below.