Skip to content

Commit

Permalink
now works with java 1.8,11-14
Browse files Browse the repository at this point in the history
  • Loading branch information
shraddhapai committed Dec 14, 2020
1 parent 8517776 commit 07ad9c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/runQuery.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 07ad9c6

Please sign in to comment.