Skip to content
Hello Java in
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead, 17 commits behind balena-io-projects:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

#Hello Java in


This project installs Open JDK 7 (JRE7 included) which allows you to execute Java applications on

This is a very simple project that is an example of how to run Java code on a Raspberry Pi.

You can build and deploy your code on the Raspberry Pi. Other JDK versions are also supported.

  • You can use command CMD ["javac", "sourceFile"] to build the java source separately but with current raspbian image this command is not supported.


The recipe for this project is as follows:

  • A Raspberry Pi and USB -> micro USB cable for power.
  • Java source file Setup & Deployment

  1. If you haven't got a alpha account, visit and sign up.
  2. Start a new applicaton on download the .zip file, format the SD card in FAT32 and extract it to your SD card.
  3. Insert the SD card into the Raspberry Pi, power it up using the micro-usb cable and connect to the Internet.
  4. After about 10 minutes your new device should show up on your application dashboard.
  5. You can now clone the Hello.Java repo:

$ git clone

Then add the resin remote:

$ git remote add resin<myUserName>/<myApplicationName>.git

And finally push the code to your Raspberry Pi:

$ git push resin master

Now you can enjoy Java code on

You can’t perform that action at this time.