Im having a issue with Visual studio code in using some of the Java features.
For example, i can't use some of its feature: (i) "Java: Clean Java Language Server Workspace" (ii) In "Java: Create java project", after configuring the project, it doesn't pop anymore a windows suggesting changing folder;
(iii) If i adjust something in the pom.xml, like the from the default 1.8 to the current 18 installed, even if a reload the vscode, it displays the following message: "Build path specifies execution environment JavaSE-1.8. There are no JREs installed in the workspace that are strictly compatible with this environment. " "The compiler compliance specified is 1.8 but a JRE 18 is used" Before, if i used the clean java language workspace, the project used to solve this issue.
I Can't seem to make this work. I think it has to do with some adjustment that i made in the settings.json:
"settingsSync.ignoredSettings": [],
"java.jdt.ls.java.home": "C:/Java/jdk-18.0.2.1",
"spring-boot.ls.java.home": "C:/Java/jdk-18.0.2.1",
"java.maven.downloadSources": true,
"java.eclipse.downloadSources": true,
"java.debug.settings.hotCodeReplace": "auto",
"java.debug.settings.console": "externalTerminal",
"java.configuration.runtimes": [{
"name": "JavaSE-18",
"path": "C:/Java/jdk-18.0.2.1",
"default": true
}],
I appreciate any help.