By: Terrence in Error Tutorials on 2023年04月03日 [フレーム]
The warning you are seeing indicates that the \"java.home\" setting in the Java extension settings is deprecated, and you should use \"java.jdt.ls.java.home\" instead. Here's how you can update your settings:
Open Visual Studio Code and go to the "File" menu and select "Preferences", then select "Settings".
In the search bar, type "java.jdt.ls.java.home" to find the Java Home path setting.
Click on the "Edit in settings.json" link next to the "Java Home" setting.
In the settings.json file, set the value of the "java.jdt.ls.java.home" property to the path of your JDK 11 installation. For example, on Windows, this might be "C:\Program Files\Java\jdk-11.0.13".
Save the changes to the settings.json file and restart Visual Studio Code.
After following these steps, Visual Studio Code should be configured to use JDK 11 as the runtime for the Java extension using the new "java.jdt.ls.java.home" setting. You should be able to develop and run Java applications that target Java 11 without any issues.
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
Most Viewed Articles (in Error )
warning: This setting is deprecated, please use 'java.jdt.ls.java.home' instead.
SOLVED: PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/
Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute
Why does my browser's search engine keeps changing back to yahoo?
Header requires three arguments - Apache cannot start
error 'Configure Runtime for Language Server' every time i open visual studio code java applications
TypeError: Cannot read property 'isDevice' of undefined - expo
SOLVED: uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library
Latest Articles (in Error)
TypeError: Cannot read property 'isDevice' of undefined - expo
error 'Configure Runtime for Language Server' every time i open visual studio code java applications
warning: This setting is deprecated, please use 'java.jdt.ls.java.home' instead.
Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute
Header requires three arguments - Apache cannot start
Why does my browser's search engine keeps changing back to yahoo?
SOLVED: PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/
SOLVED: uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library
TypeError: Cannot read property 'isDevice' of undefined - expo
error 'Configure Runtime for Language Server' every time i open visual studio code java applications
warning: This setting is deprecated, please use 'java.jdt.ls.java.home' instead.
Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute
Header requires three arguments - Apache cannot start
Why does my browser's search engine keeps changing back to yahoo?
SOLVED: PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/
SOLVED: uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library
© 2023 Java-samples.com
Tutorial Archive: Data Science React Native Android AJAX ASP.net C C++ C# Cocoa Cloud Computing EJB Errors Java Certification Interview iPhone Javascript JSF JSP Java Beans J2ME JDBC Linux Mac OS X MySQL Perl PHP Python Ruby SAP VB.net EJB Struts Trends WebServices XML Office 365 Hibernate
Latest Tutorials on: Data Science React Native Android AJAX ASP.net C Cocoa C++ C# EJB Errors Java Certification Interview iPhone Javascript JSF JSP Java Beans J2ME JDBC Linux Mac OS X MySQL Perl PHP Python Ruby SAP VB.net EJB Struts Cloud Computing WebServices XML Office 365 Hibernate