MOA is an open source framework for Big Data stream mining. It includes a collection of machine learning algorithms (classification, regression, clustering, outlier detection, concept drift detection and recommender systems) and tools for evaluation.
In Java 9, the
System.getProperty("java.version")
is simply the string"9"
. Therefore the callversion.charAt(2)
throws exception.$ java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
$ java -cp moa.jar -javaagent:(pwd)/sizeofag-1.0.0.jar moa.gui.GUI
java.lang.StringIndexOutOfBoundsException: String index out of range: 2
at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:44)
at java.base/java.lang.String.charAt(String.java:704)
at moa.DoTask.isJavaVersionOK(DoTask.java:60)
at moa.gui.GUI.main(GUI.java:78)
On macOS 10.13 with
brew cask install java
.