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 ?
- How To Solve Java 11 or more recent is required to run. Please download and install a recent JDK Error ?
- Solution 1: Update java.home path in vs code
- Solution 2: required java 11 to use the Spring Boot
- Solution 3: Download and install JDK 11
- Summary
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 ?
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.
- Open Visual Studio Code
CRTL + ,
to open the settings- Search
spring-boot.ls.java.home
- Select ‘Edit in settings.json’
- Your Java 11 installation →
"spring-boot.ls.java.home": "C:\\Program Files\\Java\\jdk-11.0.10"
- Save and restart VS Code
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.
- Open Visual Studio Code
CRTL + ,
to open the settings- Search
spring-boot.ls.java.home
- Select ‘Edit in settings.json’
- Your Java 11 installation →
"spring-boot.ls.java.home": "C:\\Program Files\\Java\\jdk-11.0.10"
- 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.
- Open Visual Studio Code
CRTL + ,
to open the settings- Search
spring-boot.ls.java.home
- Select ‘Edit in settings.json’
- Your Java 11 installation →
"spring-boot.ls.java.home": "C:\\Program Files\\Java\\jdk-11.0.10"
- 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