How can it run, I don't see a main() method?

If you want help, you'll have to ask a specific technical question (saying "it doesn't run" doesn't tell us anything) along with an SSCCE. Don't forget...