Java tutorials, experiments, and real-world projects by Frank Delporte,
Java Champion, Technical Writer at Azul, and lead maintainer of Pi4J.
Whether you're running Java on a Raspberry Pi, building desktop UIs with JavaFX,
exploring RISC-V single-board computers, or diving into JVM internals — you're
in the right place.
Topics: Java, JavaFX, Lottie4J, Pi4J, Java on Single-Board Computers, and much more...
📘 Book: Getting Started with Java on the Raspberry Pi
🎙️ Foojay and other Podcasts
📺 Videos
🗣️ Presentations
Making a DIY drum booth
What do you get if you combine a drum-playing son and a father who doesn’t like to spend thousands of euros? A DIY drum booth! ;-)
Quick start Java development with Visual Studio Code
Great move of Microsoft!
They provide an all-in-one installer for Java dependencies and Visual Studio Code. Take a look at https://devblogs.microsoft.com/visualstudio/announcing-visual-studio-code-java-installer/
Clean Raspberry Pi GPIO testing with the Breadboard Pi Bridge
Some time ago I ordered a “Breadboard Pi Bridge - Pi Ports to Breadboard in Numerical Order” and reworked my Pi test setup from the previous blogs. And it looks really good!
Pi4J to easily work with the hardware of a Raspberry Pi with Java
What is Pi4J
See https://www.pi4j.com/1.2/index.html
This project is intended to provide a friendly object-oriented I/O API and implementation libraries for Java Programmers to access the full I/O capabilities of the Raspberry Pi platform. This project abstracts the low-level native integration and interrupt monitoring to enable Java programmers to focus on implementing their application business logic.
Pi4J - Adding a REST interface with Spring Boot
As I was learning Spring Boot myself, I thought the easiest way to learn was trying to build an example and write about it. So here we go… :-)
Pi4J - Extending with a JavaFX info application
While trying out what Pi4J can do, I found it could easily be extended with a JavaFX application to provide info about the headers on a Pi board. This could later be extended to a remote/local (touch) User Interface using the REST interface from this post.
PiJava overview - Java 11 and JavaFX 11 on Raspberry PI
As my daily work mainly is Java and back-end stuff on “real servers”, I set myself for 2019 as a personal goal to experiment with Java 11 on a Raspberry PI.
PiJava - Part 6 - JavaFX 11 on Raspberry PI with TilesFX and GPIO
What we will do
Based on the previous blog posts
So there is one “small” step remaining: build something which actually does something on the PI, talking to the GPIO’s and show what’s happening.
Spoiler alert: this is what’s is going to look like:
PiJava - Part 5 - Running the minimal JavaFX 11 application on Raspberry PI
In part 2 of this blog series Java 11 was successfully installed on a PI.
PiJava - Part 4 - Building a minimal JavaFX 11 application with Maven
I prefer a Java app above a web app, because starting a new “modern” web development requires you to pull a bunch of dependencies and a lot of files before you can start. While Java just needs the JDK and one Java file, even on a Raspberry PI (as described in PiJava - Part 2).
