Interesting Question i want to know that as well ;)
You can make a commercial game with Greenfoot, as long as you comply with the license of Greenfoot. See the GREENFOOT_LICENSES.txt file that is in the Greenfoot installation directory. If you want mp3 support you also need to include the JLayer library and comply with its license, and be aware of any patent restrictions that may apply. In general, if you are uncertain, you should seek a professional legal opinion.