close

[Solved] Java 11 or more recent is required to run. Please download and install a recent JDK

Hello Guys, How are you all? Hope You all Are Fine. Today I am using Visual Studio Code But I am facing pop-up saying Java 11 or more recent is required to run. Please download and install a recent JDK in Java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Java 11 or more recent is required to run. Please download and install a recent JDK Error Occurs ?

I am using Visual Studio Code But I am facing pop-up saying.

Java 11 or more recent is required to run. Please download and install a recent JDK.

How To Solve Java 11 or more recent is required to run. Please download and install a recent JDK Error ?

  1. How To Solve Java 11 or more recent is required to run. Please download and install a recent JDK Error ?

    To Solve Java 11 or more recent is required to run. Please download and install a recent JDK Error Here to Use Spring Boot Tools required java 11 to use the Spring Boot.

  2. Open Visual Studio Code

  3. CRTL + , to open the settings

  4. Search spring-boot.ls.java.home

  5. Select 'Edit in settings.json'

  6. Your Java 11 installation → "spring-boot.ls.java.home": "C:\\Program Files\\Java\\jdk-11.0.10"

  7. Save and restart VS Code
  8. Java 11 or more recent is required to run. Please download and install a recent JDK

    To Solve Java 11 or more recent is required to run. Please download and install a recent JDK Error Here to Use Spring Boot Tools required java 11 to use the Spring Boot.

  9. Open Visual Studio Code

  10. CRTL + , to open the settings

  11. Search spring-boot.ls.java.home

  12. Select 'Edit in settings.json'

  13. Your Java 11 installation → "spring-boot.ls.java.home": "C:\\Program Files\\Java\\jdk-11.0.10"

  14. Save and restart VS Code

Solution 1: Update java.home path in vs code

Just open workspace settings on Visual Studio Code. And Change This line From.

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

To

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

Solution 2: required java 11 to use the Spring Boot

Here to Use Spring Boot Tools required java 11 to use the Spring Boot.

  1. Open Visual Studio Code
  2. CRTL + , to open the settings
  3. Search spring-boot.ls.java.home
  4. Select ‘Edit in settings.json’
  5. Your Java 11 installation → "spring-boot.ls.java.home": "C:\\Program Files\\Java\\jdk-11.0.10"
  6. Save and restart VS Code

Solution 3: Download and install JDK 11

  • Download and install JDK 11.
  • Once the installation is complete, in C:\Program Files\Java you’ll see something like this
  • Then, Open VSC and go to Settings (CTRL + , or Manage icon (bottom left) > Settings) and search for javahome
  • Now, Click in “Edit in settings.json”, add C://Program Files//Java//jdk-11.0.8 to java.home and save the file. You should have something like this
{
    "java.home": "C://Program Files//Java//jdk-11.0.8"
}
  • Restart VS Code.
  • you’ll see something like this: Security Warning! Do you allow this workspace to set the java.home variable? java.home: C://Program Files//Java//jdk-11.0.8
  • Click allow and you’re good to go.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment