jimb137
Posts: 14
Joined: Thu Dec 20, 2012 1:31 am
Location: Sacramento, California, USA

greenfoot installation

Wed Jan 16, 2013 3:47 pm

anybody know how to get greenfoot working on the Pi? I've downloaded the Oracle jdk (softfloat) and the greenfoot.jar, but all I get after that is errors.

Help!!!

-rst-
Posts: 1316
Joined: Thu Nov 01, 2012 12:12 pm
Location: Dublin, Ireland

Re: greenfoot installation

Wed Jan 16, 2013 4:22 pm

http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'

User avatar
DrPiD
Posts: 30
Joined: Wed May 16, 2012 9:44 am
Location: Leamington Spa, UK
Contact: Website

Re: greenfoot installation

Wed Apr 17, 2013 9:58 am

This is an old thread, but I managed to get it up and running and thought it might be useful for future reference.

I grabbed Oracle JDK 8 (with JavaFX) for ARM Early Access

Created a directory to install the JDK to:

Code: Select all

mkdir -p /opt
Decompress the JDK:

Code: Select all

sudo tar zxvf (name of package) -C /opt
Make sure it's in the right place, this should return the version:

Code: Select all

sudo /opt/jdk1.8.0/bin/java -version
Now that the Java JDK is installed you can go ahead and grab Greenfoot.

Download the Pure Java version
Greenfoot is installed using the command:

Code: Select all

sudo /opt/jdk1.8.0/bin/java -jar /home/pi/Greenfoot-generic-221.jar
It should pop up a window that's prepopulated with the JDK location and where you want to install Greenfoot to.

Once it's installed, if you left it on default settings, you can run it from the greenfoot script in the /home/pi/greenfoot folder or using the ./greenfoot command from within the /home/pi/greenfoot directory!

Hope this is useful :)
Community Manager - IndieCity

Return to “Other programming languages”