Skip to content

Commit

Permalink
Release wirh new Java runtime check.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhahsler committed Apr 7, 2018
1 parent 33e18d0 commit 7df2294
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: streamMOA
Version: 1.1-3.1
Date: 2018-xx-xx
Version: 1.1-4
Date: 2018-04-06
Title: Interface for MOA Stream Clustering Algorithms
Authors@R: c(person("Michael", "Hahsler", role = c("aut", "cre", "cph"),
email = "[email protected]"),
Expand Down
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changes in version 1.1-3.1 (xx/xx/18)
# Changes in version 1.1-4 (04/06/18)

* Fixed Java runtime version test for version 10 and beyond.

# Changes in version 1.1-3 (01/07/18)

Expand Down
2 changes: 1 addition & 1 deletion R/onLoad.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

.jinit()
jv <- .jcall("java/lang/System", "S", "getProperty", "java.runtime.version")
if(substr(jv, 1L, 1L) == "1") {
if(substr(jv, 1L, 2L) == "1.") {
jvn <- as.numeric(paste0(strsplit(jv, "[.]")[[1L]][1:2], collapse = "."))
if(jvn < 1.5) stop("Java 5 or higher is needed for this package but not available")
}

0 comments on commit 7df2294

Please sign in to comment.