Skip to content

Commit 83e2575

Browse files
committed
Extension requires Java 21
Fixes #388 Signed-off-by: David Thompson <[email protected]>
1 parent 638c0de commit 83e2575

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ In `Java` files, you will benefit with:
4040
## Requirements
4141

4242
* [Language Support for Java(TM) by Red Hat](https://marketplace.visualstudio.com/items?itemName=redhat.java)
43-
* Java JDK (or JRE) 11 or more recent is required **except** on the following platforms : `win32-x64`, `linux-x64`, `linux-arm64`, `darwin-x64`, `darwin-arm64`. See [JDK Tooling](https://github.com/redhat-developer/vscode-java/#java-tooling-jdk) for details.
43+
* Java JDK (or JRE) 21 or more recent is required **except** on the following platforms : `win32-x64`, `linux-x64`, `linux-arm64`, `darwin-x64`, `darwin-arm64`. See [JDK Tooling](https://github.com/redhat-developer/vscode-java/#java-tooling-jdk) for details.
4444

4545
## Supported VS Code settings
4646

src/languageServer/requirements.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ function checkJavaVersion(javaHome: string): Promise<number> {
8686
return new Promise((resolve, reject) => {
8787
cp.execFile(javaHome + '/bin/java', ['-version'], {}, (error, stdout, stderr) => {
8888
const javaVersion = parseMajorVersion(stderr);
89-
if (javaVersion < 11) {
90-
reject(openJDKDownload(`Java 11 or more recent is required to run 'Tools for MicroProfile'. Please download and install a recent JDK.`));
89+
if (javaVersion < 21) {
90+
reject(openJDKDownload(`Java 21 or more recent is required to run 'Tools for MicroProfile'. Please download and install a recent JDK.`));
9191
} else {
9292
resolve(javaVersion);
9393
}

0 commit comments

Comments
 (0)