I've never heard of Boilerpipe before, so please forgive me if this is not how it works, but doesn't your code still need to be inside a class?
You have your main method (and in fact all your code) not within a class - or does Boilerplate make the java work very differently?