Got the project to compile on Eclipse normally.
Use the interface for the listener.