1 个回答
1) Try this alternative (c:\\) : Change the salesforcedx-vscode-apex.java.home setting to the full path to your Java installation directory identified in the previous step. Note that for Visual Studio Code settings, the backslashes must be escaped (\) but forward slashes (/) don’t. http://https://salesforce.stackexchange.com/questions/252329/vs-code-is-there-a-trail-regarding-installation-of-jre8 (http://https://salesforce.stackexchange.com/questions/252329/vs-code-is-there-a-trail-regarding-installation-of-jre8)2) salesforcedx-vscode-apex.java.home is useless if you set at least one of the folowing environment variables (very simple).By default, VS Code attempts to locate your local Java installation by looking for a JAVA_HOME or JDK_HOME environment variable on your computer. If VS Code cannot find your Java installation, or if you want it to use a different installation, change the salesforcedx-vscode-apex.java.homesetting.https://salesforce.stackexchange.com/questions/212840/java-runtime-could-not-be-located-when-starting-vscode-with-the-salesforce-extWhat do you see in a DOS console for the following commands? ( cmd ) c:\>env|find "JAVA"c:\>env|find "JDK"That is another basic requirement for many softwares that use java.