Saturday, 21 November 2015

Installing Greenfoot Java in Linux

Greenfoot is a great tool for learning Java programming. One issue I ran into was setting the default Java environment for it to install.

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.









By using the following command, you can select the version that Greenfoot needs and completing the installation.

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.