That's saying that the java.util.Scanner constructor is marked as being able to throw the exception java.io.FileNotFoundException - you either need to wrap that in a try/catch or mark your function as ...
Here is a proposed workaround for 4 java-scanner bugs. It works by extending the jar tool recognizing this situation, and adding the missing .class files to the jar command line, so the end result is ...