diff --git a/packages/metals-languageclient/src/setupCoursier.ts b/packages/metals-languageclient/src/setupCoursier.ts index 767394df..a1752086 100644 --- a/packages/metals-languageclient/src/setupCoursier.ts +++ b/packages/metals-languageclient/src/setupCoursier.ts @@ -55,7 +55,7 @@ export async function setupCoursier( const resolveJavaHomeWithCoursier = async (coursier: string) => { await run( coursier, - ["java", "--jvm", javaVersion, "-version"], + ["java", "--jvm", `temurin:${javaVersion}`, "-version"], handleOutput );