From 6c633eb7257cfb24e480e13249ce2afd80f8d7b7 Mon Sep 17 00:00:00 2001 From: Julien Dubois Date: Fri, 22 Sep 2023 15:02:15 +0200 Subject: [PATCH] Allow Oracle JDK 21 usage --- src/distributions/oracle/installer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/distributions/oracle/installer.ts b/src/distributions/oracle/installer.ts index ec0ab21..72a92fb 100644 --- a/src/distributions/oracle/installer.ts +++ b/src/distributions/oracle/installer.ts @@ -88,8 +88,8 @@ export class OracleDistribution extends JavaBase { `${ORACLE_DL_BASE}/${major}/archive/jdk-${range}_${platform}-${arch}_bin.${extension}` ); - if (parseInt(major) < 17) { - throw new Error('Oracle JDK is only supported for JDK 17 and later'); + if (parseInt(major) < 21) { + throw new Error('Oracle JDK is only supported for JDK 21 and later'); } for (const url of possibleUrls) {