You will first of all need to build a complete jar with all Greenfoot dependencies included. You can use this which I created once. Then build the project with it. You may also convert your project to a maven project (if you know how) and let it build it for you.