You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<span>The required extension <ahref={encodeCommandUriWithTelemetry(WEBVIEW_ID,"classpath.openJavaLanguageSupportMarketPlace","extension.open",["redhat.java"])}>Language Support for Java(TM) by Red Hat</a> is not installed or it's disabled. Please <ahref={encodeCommandUriWithTelemetry(WEBVIEW_ID,"classpath.installJavaLanguageSupport","workbench.extensions.installExtension",["redhat.java"])}>install</a> it in Visual Studio Code and <ahref={encodeCommandUriWithTelemetry(WEBVIEW_ID,"classpath.reloadWebview","workbench.action.webview.reloadWebviewAction")}>reload</a> the page after installation.</span>
29
+
<span>The required extension <ahref={encodeCommandUriWithTelemetry(WEBVIEW_ID,"classpath.openJavaLanguageSupportMarketPlace","extension.open",["redhat.java"])}>Language Support for Java™ by Red Hat</a> is not installed or it's disabled. Please <ahref={encodeCommandUriWithTelemetry(WEBVIEW_ID,"classpath.installJavaLanguageSupport","workbench.extensions.installExtension",["redhat.java"])}>install</a> it in Visual Studio Code and <ahref={encodeCommandUriWithTelemetry(WEBVIEW_ID,"classpath.reloadWebview","workbench.action.webview.reloadWebviewAction")}>reload</a> the page after installation.</span>
30
30
</div>
31
31
);
32
32
break;
33
33
caseClasspathViewException.StaleJavaExtension:
34
34
content=(
35
35
<div>
36
-
<span>The version of required extension <ahref={encodeCommandUriWithTelemetry(WEBVIEW_ID,"classpath.openJavaLanguageSupportMarketPlace","extension.open",["redhat.java"])}>Language Support for Java(TM) by Red Hat</a> is too stale. Please <ahref={encodeCommandUriWithTelemetry(WEBVIEW_ID,"classpath.installJavaLanguageSupport","workbench.extensions.installExtension",["redhat.java"])}>update</a> it and <ahref={encodeCommandUriWithTelemetry(WEBVIEW_ID,"classpath.reloadWebview","workbench.action.webview.reloadWebviewAction")}>reload</a> the page.</span>
36
+
<span>The version of required extension <ahref={encodeCommandUriWithTelemetry(WEBVIEW_ID,"classpath.openJavaLanguageSupportMarketPlace","extension.open",["redhat.java"])}>Language Support for Java™ by Red Hat</a> is too stale. Please <ahref={encodeCommandUriWithTelemetry(WEBVIEW_ID,"classpath.installJavaLanguageSupport","workbench.extensions.installExtension",["redhat.java"])}>update</a> it and <ahref={encodeCommandUriWithTelemetry(WEBVIEW_ID,"classpath.reloadWebview","workbench.action.webview.reloadWebviewAction")}>reload</a> the page.</span>
<h3class="font-weight-light">Why do I see the JDK errors?</h3>
321
321
<p>
322
-
<strong><code>JDK 11+</code> is required</strong> to run VS Code Java! You see this error because we failed to find one on your machine. The <ahref="command:java.runtime">Configure Java Runtime</a> guide can help you understand how JDK path is searched and provides download links if you need to install one.
322
+
<strong><code>JDK 11+</code> is required</strong> to run the Java language support (redhat.java) extension! You see this error because we failed to find one on your machine. The <ahref="command:java.runtime">Configure Java Runtime</a> guide can help you understand how JDK path is searched and provides download links if you need to install one.
323
323
</p>
324
324
<h3class="font-weight-light">Can I run my Java 8 project with JDK 1.8?</h3>
325
325
<p>
326
-
Yes. JDK 11 requirement is just for running VS Code Java extension itself, you can still configure a different runtime <ahref="command:java.helper.openUrl?%22https%3A%2F%2Fcode.visualstudio.com%2Fdocs%2Fjava%2Fjava-project%23_jdk-for-projects%22">JDK for your project</a> via user setting <ahref="command:workbench.action.openSettings?%22java.configuration.runtimes%22">"java.configuration.runtimes"</a>. The extension will pick a mapping JDK to compile/run your project according to the compiler version specified by the project build file.
326
+
Yes. The JDK 11 requirement is just for running the Java language support (redhat.java) extension itself. You can still configure a different runtime <ahref="command:java.helper.openUrl?%22https%3A%2F%2Fcode.visualstudio.com%2Fdocs%2Fjava%2Fjava-project%23_jdk-for-projects%22">JDK for your project</a> via the user setting <ahref="command:workbench.action.openSettings?%22java.configuration.runtimes%22">"java.configuration.runtimes"</a>. The extension will pick a matching JDK to compile/run your project according to the compiler version specified by the project build file.
Copy file name to clipboardExpand all lines: src/java-runtime/index.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -206,7 +206,7 @@ export async function findJavaRuntimeEntries(): Promise<{
206
206
javaDotHome=runtime.java_home;
207
207
constjavaVersion=runtime.java_version;
208
208
if(!javaVersion||javaVersion<11){
209
-
javaHomeError=`Java 11 or more recent is required to run the Java extension. Preferred JDK "${javaDotHome}" (version ${javaVersion}) doesn't meet the requirement. Please specify or install a recent JDK.`;
209
+
javaHomeError=`Java 11 or more recent is required by the Java language support (redhat.java) extension. Preferred JDK "${javaDotHome}" (version ${javaVersion}) doesn't meet the requirement. Please specify or install a recent JDK.`;
0 commit comments