{"id":130,"date":"2023-03-17T09:27:08","date_gmt":"2023-03-17T09:27:08","guid":{"rendered":"https:\/\/smartsource.com.sg\/blog\/?p=130"},"modified":"2023-03-17T09:27:08","modified_gmt":"2023-03-17T09:27:08","slug":"warning-this-setting-is-deprecated-please-use-java-jdt-ls-java-home-instead","status":"publish","type":"post","link":"https:\/\/smartsource.com.sg\/blog\/index.php\/2023\/03\/17\/warning-this-setting-is-deprecated-please-use-java-jdt-ls-java-home-instead\/","title":{"rendered":"warning: This setting is deprecated, please use &#8216;java.jdt.ls.java.home&#8217; instead"},"content":{"rendered":"\n<p>The warning you are seeing indicates that the &#8220;java.home&#8221; setting in the Java extension settings is deprecated, and you should use &#8220;java.jdt.ls.java.home&#8221; instead. Here&#8217;s how you can update your settings:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open Visual Studio Code and go to the &#8220;File&#8221; menu and select &#8220;Preferences&#8221;, then select &#8220;Settings&#8221;.<\/li>\n\n\n\n<li>In the search bar, type &#8220;java.jdt.ls.java.home&#8221; to find the Java Home path setting.<\/li>\n\n\n\n<li>Click on the &#8220;Edit in settings.json&#8221; link next to the &#8220;Java Home&#8221; setting.<\/li>\n\n\n\n<li>In the settings.json file, set the value of the &#8220;java.jdt.ls.java.home&#8221; property to the path of your JDK 11 installation. For example, on Windows, this might be &#8220;C:\\Program Files\\Java\\jdk-11.0.13&#8221;.<\/li>\n\n\n\n<li>Save the changes to the settings.json file and restart Visual Studio Code.<\/li>\n<\/ol>\n\n\n\n<p>After following these steps, Visual Studio Code should be configured to use JDK 11 as the runtime for the Java extension using the new &#8220;java.jdt.ls.java.home&#8221; setting. You should be able to develop and run Java applications that target Java 11 without any issues.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The warning you are seeing indicates that the &#8220;java.home&#8221; setting in the Java extension settings is deprecated, and you should use &#8220;java.jdt.ls.java.home&#8221; instead. Here&#8217;s how you can update your settings:&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[57,105],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-question-and-answers","tag-java","tag-vs-code"],"_links":{"self":[{"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=130"}],"version-history":[{"count":1,"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/posts\/130\/revisions\/131"}],"wp:attachment":[{"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartsource.com.sg\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}