Unsupported Java version
Please check this article.
Fix the unsupported Java version error in VS Code
https://www.youtube.com/watch?v=BwBNsLBpnVs
Unsupported Java version
Which JDK are you using?
If you use zulu-11, please configure as follows
setting.json
{ "salesforcedx-vscode-apex.java.home": "/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home"}
Java Setup
https://developer.salesforce.com/tools/vscode/en/vscode-desktop/java-setup
I have checked Java:Home and PATH envoronment variables are correct. パスは正しい
Windows registry was found corrupted. After changing to a different laptop, this issue vanished.
Java 8 is required to run. Download and install it from https://java.com/en/download/.
I had this same problem. It took a while to get a solution.
This is how I finally resolved the problem for Windows.
I had multiple version of java installed. I uninstalled them all. Restart the PC.
Visit https://www.oracle.com/uk/java/technologies/javase/jdk11-archive-downloads.html and download the most recent version of Java 11
Get your java filepath. Mine looks like this C:\Program Files\Java\jdk-11.0.14. you only need to go as far as the Jdk-verion folder.
Go to Control Panel and search Environment Variables. Click on Edit the Sytem Environment variables > Environment Variables
In the System variables list. Make sure the JAVA_HOME is the same path ie C:\Program Files\Java\jdk-11.0.14. Click OK.
Now go to VS Code. File>Preferences>Settings ===> Seach apex. Paste the same path "C:\Program Files\Java\jdk-11.0.14" into "Salesforcedx-vscode-apex › Java: Home" text box field.
https://developer.salesforce.com/forums/?id=9060G0000005SSnQAM