BlueJ on the Raspberry Pi

BlueJ is an Integrated Development Environment (IDE) written in Java, designed for the teaching of java for beginners.

From version 3.14, BlueJ fully supports the Raspberry Pi, a credit card sized single board computer aimed at promoting the teaching of basic computer programming in schools. BlueJ is a Java development environment that allows development as well as program execution on the Pi.

BlueJ provides full access to hardware attached to the Raspberry Pi via the open source Pi4J library, from the the familiar Java SE language, including the new Java 8.


BlueJ is now part of the Raspbian distribution, and it is already installed by default on the current Raspberry Pi image.

However, If you don't have BlueJ already installed, just run this command in a terminal on the Raspberry Pi:

sudo apt-get update && sudo apt-get install bluej

BlueJ already includes Pi4J, which is an object-oriented API for Java to access the GPIOs of the Raspberry Pi.

There is no need to install the JDK first, as it is included on the default Raspberry Pi image.


As basis for your own projects, all of the above I/O helper classes, plus helper classes to use analog inputs: using the MCP3008, and another one using a just a capacitor (described here) are avaliable in a single BlueJ project for download.


An academic paper is available discussing some of the motivation, background and possibilities of BlueJ on the Raspberry Pi:

Michael Kölling: Educational Programming on the Raspberry Pi, Electronics, 5 (3). pp. 1-17. ISSN 2079-9292 (2016)


Please see support page.