Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99124

Error: Build path specifies execution environment JavaSE-10. There are no JREs installed in the workspace that are strictly compatible.

$
0
0

I'm having issues with setting up the JREs in my VSCode workspace. I thought the issue was correctly setting up my java.home in my settings.json but I'm still getting this error:

Build path specifies execution environment JavaSE-10. There are no JREs installed in the workspace that are strictly compatible.

I've looked at the answer here (Warning - Build path specifies execution environment J2SE-1.4) but the solution is for Eclipse and not VSCode.

I think it is because the JRE is specifying Java10 and I'm using Java11.

Any suggestions on how to set up the JRE for VSCode?

Also, here is the java version I'm using and my settings.

$ /usr/libexec/java_home -V

Matching Java Virtual Machines (1):
    11.0.1, x86_64: "Java SE 11.0.1"    /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home

And my java.home settings in VSCode:

"java.home": "/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home"


Viewing all articles
Browse latest Browse all 99124

Trending Articles