Raspberry Pi & Java


In October 2013 it was announced that Oracle Java will be included on the latest Raspberry Pi distribution. Existing users can install it by typing:
sudo apt-get update && sudo apt-get install oracle-java7-jdk

In December 2012 Oracle announced JDK 8 (with JavaFX) for ARM Early Access. There is a good blog post by Robert Savage on installing this.

On 14th August 2012 Oracle announced the availability of JDK 7 Update 6 with a new JDK port to Linux ARM.

Open JDK

The Open JDK package is easier to install but suffers from lower performance. The process is described hereWheezy OS).

We also found that it was easier to import code using a USB pendrive as it was instantly recognised and mounted. At this point in time, we are also using a USB pendrive to backup our code. We are trying to structure folders and files, so that we can easily upgrade the operating system if need be later.


We use EditPlus on our Windows machines as it is one of the best text editors we've ever used. It is also possible to use EditPlus under Linux.


Compiling code is simply a matter of invoking the Java. The command line can be quite long when you have many Java files so a shell script will speed things up. This allows you to then have a 'make' file/command and a 'run' file/command.




Over the years we have created our own library of tools and utility classes and porting of these over to Linux (we mianly develop under Windows 7) was an easy task.

Further Reading

There is a Java topic on the Raspberry Pi community forums: Raspberry Pi > Programming > Java.

Share ...
We are on ...
Facebook Twitter
YouTube Flickr Follow us on Pinterest