Well, according to this documentation Instance is an interface. That is why you get this error. You will need to create one of the implementation classes, for example
Instance iExample = new DenseInstance(4);
Perhaps this example is out of date.
The cat
source share