You can simply copy its code and paste it into the other project.
Or you copy the files of the class from your project and paste it into Greenfoot>lib>greenfoot>common folder where the other classes are which you can import.
Or you copy the files of the class from your project and paste it into Greenfoot>lib>greenfoot>common folder where the other classes are which you can import