Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing the java.home path in VS code

I just installed java 11 coz VS code was prompting me to update it to java 11 or newer version. After installing java 14, I'm not getting how to change the path to new folder that has java 14. In settings.json file the path can be seen when cursor hovered over java.home variable. Image attached image attached 1

like image 311
Ravikiran Talawar Avatar asked Feb 16 '26 16:02

Ravikiran Talawar


1 Answers

For those coming now, in VSCode settings change "java.home" to "java.jdt.ls.java.home"

From

"java.home": "C:\\Program Files\\Java\\jdk-17.0.2"

To

"java.jdt.ls.java.home": "C:\\Program Files\\Java\\jdk-17.0.2",
like image 98
Grandmaster Avatar answered Feb 18 '26 07:02

Grandmaster