Changing the java.home path in VS code

We Are Going To Discuss About Changing the java.home path in VS code. So lets Start this Java Article.

Changing the java.home path in VS code

  1. Changing the java.home path in VS code

    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",

  2. Changing the java.home path in VS code

    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",

Solution 1

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",

Original Author Of This Content

Solution 2

The path to the Java Development Kit is searched in the following order:

  1. the java.home setting in VS Code settings (workspace then user
    settings)
  2. the JDK_HOME environment variable
  3. the JAVA_HOME environment variable
  4. on the current system path

The ‘java.home’ has the highest priority, and ‘java.home’ is different from the system environment variable. Open settings and search ‘java.home’, you can get the example:

"java.home":"C:\\Program Files\\Java\\jdk1.8.0_161"

It points to ‘jdk’ folder instead of ‘jdkFolder\bin’.

Original Author Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

Siddharth

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment