Installation - Couldn't start client Java Language Server after restarting VSCode
Use Java Language Server outside Visual Studio Code - Stack Overflow
visual studio code - java-language-server vscode extension - Starting client failed - Stack Overflow
eclipse - Java Language Server hangs at startup in specific VS Code workspace - Stack Overflow
Videos
Today and I was coding and at some point I restarted my PC and VSCode broke. It happened all of a sudden, I didn't change anything. I have no idea why this is happening. All my code has red underlines because VSCode doesn't recognize java for some reason.
I get the two following error messages:
-
Unbound classpath container: 'JRE System Library [17.0.10-win32-x86_64]' in project 'comp16412-bakery_b58553ac_14102200'
-
The project cannot be built until build path errors are resolved
I have looked online for answers and I am sure that java is installed on my pc. I have checked that I have the correct paths for the correct java installation. On the file settings.json I have added the following lines:
"java.jdt.ls.java.home": "C:\\Program Files\\Java\\jdk-17", "java.home": "C:\\Program Files\\Java\\jdk-17",
I'm not sure if this changed anything.
How do I fix this error. Please someone help me this is making me super confused and I just want to do my project for University lmao.
You can disable the Language Support for Java(TM) by Red Hat extension in VS Code.
It can either be disabled entirely, or just for your current workspace. If you never want to use it, you can uninstall the extension instead.

There is now a new setting java.autobuild.enabled in RedHat's Java extension (since this PR). It will not stop importing projects, but once the project is imported, it will not automatically rebuild it.
To force manual rebuilding, use the Command Palette and run Java: Force Java Compilation.