Hey, im having this problem with VS code, i installed the extension to use JAVA but im getting this message

I downloaded JDK from oracle's webpage and when I look the settings I get this

It says that my version is jdk1.8.0_161 but in my program files I have this.

I don't know what I have to do, i need help please
The setting you're seeing is an example ( i.e). You need to click on Edit in settings.json and point the java.home preference to your actual JDK
@Santiagoarego If you are new to the VSCode Java, you can follow this tutorial: https://code.visualstudio.com/docs/java/java-tutorial
I had the same issue. Removed the Open JDK and installed Oracle JDK, then it started working.
I am facing the same issue. Even i download the Java Runtime.
I have same issue. Has anyone found any solution yet?
I had this issue today, It needs access to the javac program to compile the java.
On windows open CMD and type where javac
Hopefully it will come back with a not found error indicating that the jdk is not in your path.
On windows 10
Go back to cmd and type where javac - this time it should come back with a path. Resart vscode and cross your fingers.
Thanks dude @Santiagoarego
I want to specify my JDK version and had the same issue with macOS.
works
```setting.json
{
"java.home": "/Users/myname/.sdkman/candidates/java/8.0.222.j9-adpt"
}
**not works**
```setting.json
{
"java.home": "${env:HOME}/.sdkman/candidates/java/8.0.222.j9-adpt"
}
Environment
Most helpful comment
The setting you're seeing is an example ( i.e). You need to click on Edit in settings.json and point the java.home preference to your actual JDK