From 07ad9c6d24382f9757356ae15743a74768582d2c Mon Sep 17 00:00:00 2001 From: shraddhapai Date: Mon, 14 Dec 2020 15:27:58 -0500 Subject: [PATCH] now works with java 1.8,11-14 --- R/runQuery.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/runQuery.R b/R/runQuery.R index 1f627927..8c2d2084 100644 --- a/R/runQuery.R +++ b/R/runQuery.R @@ -28,8 +28,8 @@ runQuery <- function(dbPath, queryFiles, resDir, verbose = TRUE, args <- c() java_ver <- suppressWarnings(system2("java", args="--version",stdout=TRUE,stderr=NULL)) - if (any(grep(" 11",java_ver))) { - if (verbose) message("Java 11 detected") + if (any(grep(" 11",java_ver)) || any(grep(" 12",java_ver)) || any(grep(" 13",java_ver)) || any(grep(" 14",java_ver))) { + if (verbose) message("Java 11 or later detected") } else { if (verbose) message("Java 8 detected") args <- c(args,"-d64")