Close

Raspberry Pi 2 B and Processing 2.2.1

A project log for Hacking the way to growing food

Using Technology And A Hackers Mindset To Grow Food. Last Updated [16/01/2021]

michael-ratcliffeMichael Ratcliffe 07/30/2015 at 23:500 Comments

The hackers Solution to World Hunger will require Vision based control, Processing is a Free and Powerful Tool when it comes to Vision based Control Systems. It turns out Installing Processing on The Raspberry Pi is a little more complicated than it should be, this tutorial will guide you through the installation process.

This Tutorial is based on a Scruss.com tutorial for processing 2.1 . If you are used to the Linux GUI and the use of Commands, then skip the Video and just read the tutorial. If this is your first time with a Raspberry Pi and are finding yourself a little lost making your way around the environment then use both the video and tutorial together.

In order to get a working version of Processing on the Raspberry Pi the following steps must be followed:

>Update the system

>Install and use the Java JDK 7

>Install Processing

>Replace the Java run time with Pi’s own version

Update the system

Check that you are connected to the internet, then open the terminal and follow the commands below:

sudo apt-get update

sudo apt-get dist-upgrade

Install Java

sudo apt-get install oracle-java7-jdk

Check if the right version is installed and being used.

 java -version

java version "1.7.0_40" is what you should get, if you dont then enter the following Command:

sudo update-alternatives --config java

This command will ask for a specific version to be declared, you do this by inputting the corresponding table number into the task manager. Remember you want JDK 7.

Download & Install Processing

Go to www.Processing.Org

And Download the Linux 32-bit Version [around 100mb]

[If you have the funds to spare, Fund these guys. Their work is Awesome!]

Once it is downloaded click to open the file, it will ask you to extract the folder, extract it into the:

home/pi directory [as Below]

Next you need to Run the following two commands, it replaces the java with a compatible R-pi one [Check out Scruss.com if you want a better explanation] .

rm -rf ~/processing-2.2.1/java

ln -s /usr/lib/jvm/jdk-7-oracle-armhf ~/processing-2.2.1/java

That Is The End of The Tutorial

Now You should be able to navigate to the processing folder:

home/pi /Processing-2.2.1

Click on the Processing Link in there, Execute and Processing should open like below:


Dont Forget To like, Share and Get involved with the "Hackers Solution to World Hunger" Project. The next Tutorials:

> Controlling Raspberry Pi GPIO Pins From Withing Processing Environment

>Raspberry Camera and Processing, Bringing Vision Based Control To Your Projects

Discussions