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
Copy file name to clipboardExpand all lines: README.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,13 +54,16 @@ See the [changelog](CHANGELOG.md) for the latest release. You might also find us
54
54
Setting the JDK
55
55
===============
56
56
## Java Tooling JDK
57
-
This JDK will be used to launch the Java Language Server. And by default, will also be used to compile your projects.
57
+
Now that Java extension will publish platform specific versions, it will embed a JRE for supported platforms such as `win32-x64`, `linux-x64`, `linux-arm64`, `darwin-x64`, `darwin-arm64`. The embedded JRE is used to launch the Language Server for Java. Users are only responsible for configuring [Project JDKs](#project-jdks)to compile your Java projects.
58
58
59
-
The path to the Java Development Kit can be specified by the `java.home` setting in VS Code settings (workspace/user settings). If not specified, it is searched in the following order until a JDK meets current minimum requirement.
59
+
The following part is only kept for the universal version without embedded JRE.
60
60
61
-
- the `JDK_HOME` environment variable
62
-
- the `JAVA_HOME` environment variable
63
-
- on the current system path
61
+
>The tooling JDK will be used to launch the Language Server for Java. And by default, will also be used to compile your projects.\
62
+
\
63
+
The path to the Java Development Kit can be specified by the `java.home` setting in VS Code settings (workspace/user settings). If not specified, it is searched in the following order until a JDK meets current minimum requirement.
64
+
>- the `JDK_HOME` environment variable
65
+
>- the `JAVA_HOME` environment variable
66
+
>- on the current system path
64
67
65
68
## Project JDKs
66
69
If you need to compile your projects against a different JDK version, it's recommended you configure the `java.configuration.runtimes` property in your user settings, eg:
@@ -107,7 +110,7 @@ Supported VS Code settings
107
110
==========================
108
111
The following settings are supported:
109
112
110
-
*`java.home` : Absolute path to JDK home folder used to launch the Java Language Server. Requires VS Code restart.
113
+
*`java.home` : **Deprecated, only used for universal version without embedded JRE.**Absolute path to JDK home folder used to launch the Java Language Server. Requires VS Code restart.
111
114
*`java.jdt.ls.vmargs` : Extra VM arguments used to launch the Java Language Server. Requires VS Code restart.
112
115
*`java.errors.incompleteClasspath.severity` : Specifies the severity of the message when the classpath is incomplete for a Java file. Supported values are `ignore`, `info`, `warning`, `error`.
113
116
*`java.trace.server` : Traces the communication between VS Code and the Java language server.
done(newError(`justj doesn't support the jre ${javaVersion} for the platform ${javaPlatform} (${targetPlatform}), please refer to the link ${manifestUrl} for the supported platforms.`));
0 commit comments