With the latest releases, both Greenfoot BlueJ (@bluej.org) are optimised for Raspberry Pi (@raspberrypi.bsky.social) again, and now have dedicated installers for this platform.
Get them here:
BlueJ v5.4.1: bluej.org
Greenfoot v3.9.0: greenfoot.org