As it needs JavaFX, it needs the official flavour from Oracle. Most people will have the Open JDK libraries installed along side with Oracle’s Java too.
sudo update-alternatives –config java
Select the “/usr/java/jdk1.8.0_65/jre/bin/java” or whatever the latest version is for you.
Then we can open Greenfoot and code away.