I'm not familiar with stanford coreNLP. I want to use one of its classes Evalb
. I've imported all packages (although many of them have errors). class Evalb doesn't have any error. when I run it I got this exception :
Exception in thread "main" java.lang.ExceptionInInitializerError
at edu.stanford.nlp.international.Language.<clinit>(Language.java:15)
at edu.stanford.nlp.parser.metrics.Evalb.usage(Evalb.java:136)
at edu.stanford.nlp.parser.metrics.Evalb.main(Evalb.java:163)
Caused by: java.lang.RuntimeException: Uncompilable source code - package java.util.function does not exist
at edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams.<clinit>(AbstractTreebankParserParams.java:13)
... 3 more
Java Result: 1
I have installed JDK 1.8
How can I fix this?