diff --git a/packages/metals-languageclient/src/getJavaHome.ts b/packages/metals-languageclient/src/getJavaHome.ts index 300a4bf2..919fd5bf 100644 --- a/packages/metals-languageclient/src/getJavaHome.ts +++ b/packages/metals-languageclient/src/getJavaHome.ts @@ -52,7 +52,7 @@ function fromEnv(): TaskEither { function locate(): TaskEither { return pipe( - locateJavaHome({ version: ">=1.8 <=17" }), + locateJavaHome({ version: ">=1.8 <=21" }), chain((javaHomes) => { if (!javaHomes || javaHomes.length === 0) { return TE.left(new Error("No suitable Java version found"));