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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s