Java Programs for the Raspberry Pi

Here are a few programs I have written in Java for the Raspberry Pi. They include a program to set static IP addresses on Pis running Raspbian Jessie, a full screen image viewer and a program to detect motion and capture images with a Raspberry Pi camera.

Javadocs for the complete library are located here and the complete library may be downloaded here. Extract the library file in your ~/bin directory and you can use the included build scripts.

All of these programs require Java 8 but that is already installed on your Raspbian running Pi.

Please direct all questions, comments, suggestions or requests to: pi at 585ranch dot com.


IPScanner Program The IPScanner program is a command line program to scan a range of IP addresses for other devices or servers. It is quite fast and can scan a whole /24 subnet in a few seconds even on a slow Pi. The scan can utilize a ping or attempt to make a TCP connection on a specified port.


Intercom Program The Intercom program is a simple voice over IP intercom that will send voice data to another copy of the Intercom program.


MotionDetection Program The MotionDetection program continuously takes images with the Raspberry Pi camera and displays them on the program window. If motion is detected a green dot indicator is displayed in the upper right corner of the screen. The images where motion is detected may be captured to storage or emailed. Also, as in the photo, a composite image may be displayed consisting of the previous image and a set of blue boxes showing where motion was detected in the image.


ARP Program The ARP program presents the output of the arp command on a Java component. The program automatically adjusts the size of the component as the data displayed changes.