. Advertisement .
..3..
. Advertisement .
..4..
While using Visual Studio Code, we get a message that says Java 11 or more recent is required to run. Please download and install a recent JDK. Let’s go through all possible solutions to this issue in the next post!
Why Java 11 or more recent is required to run. Please download and install a recent JDK Error Occurs?
While applying Visual Studio Code, the following message pops out.
Java 11 or more recent is required to run. Please download and install a recent JDK.
How To Solve It?
To solve the issue, first, you must have Java 11 installed, then run the Spring Boot Tools. Follow these steps to solve it.
- Launch Visual Studio Code.
- Press CTRL + to access the settings.
- Find spring-boot.ls.java.home.
- Choose ‘Edit in settings.json’.
- “spring-boot.ls.java.home” in your Java 11 installation: “C:Program FilesJavajdk-11.0.10”
- Save your work and relaunch the code.
The Solutions
Solution 1
Open Visual Studio Code’s workspace setup. Then, change the following command.
“adoptopenjdk-8.jdk/Contents/Home”
to “adoptopenjdk-11.jdk/Contents/Home”
Solution 2
First, you must have Java 11 installed, then use Spring Boot Tools. Here are the steps.
- Launch Visual Studio Code.
- Press CTRL + to access the settings.
- Find spring-boot.ls.java.home.
- Choose ‘Edit in settings.json’.
- “spring-boot.ls.java.home” in your Java 11 installation: “C:Program FilesJavajdk-11.0.10”
- Save your work and relaunch the code.
Solution 3
- JDK 11 should be downloaded and installed.
- When the installation is finished, look for it in C: Program FilesJava.
- Then, launch VSC and navigate to Settings and find javahome.
- Now, choose “Edit in settings.json” and add C:/Program Files/Java/jdk-11.0.8 to java.home before saving the file. You should see a line of code.
- Restart Visual Studio Code.
- You will see an alert pop up
- Click allow, and the problem is solved
Conclusion
Java 11 or more recent is required to run. Please download and install a recent JDK error that new developers can find difficult to solve since it is difficult to correct. If so, check our post again and put our solutions to use.
You may also apply your own, more appropriate solution to fix it and submit us your solutions so that we can provide better answers in the future. Thank you!
[…] obtaining the right Java JDK and Eclipse IDE versions will aid greatly in getting rid of this […]