Pi4J

@pi4j@foojay.social
289 Followers
14 Following
163 Posts
An open source Java library project providing simplified OO-friendly interfaces to the low-level hardware I/O on the Raspberry Pi. (GPIO, SPI, I2C, SERIAL)
Websitehttps://pi4j.com
GitHubhttps://github.com/Pi4J/

You'll probably get an error if you want to run a #Java 21 (or newer) application on a #RaspberryPi 3, Zero 2, or other type with an #Arm #Cortex #A53 processor. It's a known bug already fixed for the July update release. Until then, you can still run your app with extra command-line options as a workaround.

All info is available in a blog post on our site:
https://www.pi4j.com/blog/2025/20250625-java-21-not-working-on-zero-2/

#JavaOnRaspberryPi

Java 21+ Not Working on Zero 2 - Pi4J

Java IO Library for the Raspberry Pi

We have a very explanatory new featured project on our website: "Spring Boot Alarm System" by Mihai Buleandra. It's a simple wired alarm system, with a movement sensor, LEDs, a numeric keypad, etc., created with Pi4J, #SpringBoot, and #Thymeleaf, on a #RaspberryPi.

https://www.pi4j.com/featured-projects/spring-boot-alarm/

#JavaOnRaspberryPi

Spring Boot Alarm System - Pi4J

Java IO Library for the Raspberry Pi

The Pi4J project provides Java bindings to access the full I/O capabilities of the Raspberry Pi platform, rendering it a crucial tool for Java devs on the Pi. We proudly welcome Pi4J to APIdia! https://apidia.net/mvn/com.pi4j/pi4j
Pi4J · APIdia, the JavaDoc alternative

API documentation of Pi4J. APIdia is a JavaDoc-inspired interlinked collection of high-quality API documentation of open source projects.

Pi4J 3.0.2 has been released recently. API documentation is available on APIdia now.

https://jvm.social/@APIdia/114301908012586360

https://apidia.net/mvn/com.pi4j/pi4j

APIdia (@APIdia@jvm.social)

Attached: 1 image The Pi4J project provides Java bindings to access the full I/O capabilities of the Raspberry Pi platform, rendering it a crucial tool for Java devs on the Pi. We proudly welcome Pi4J to APIdia! https://apidia.net/mvn/com.pi4j/pi4j

jvm.social
Version 3.0.2 of Pi4J was released. Check the release notes for more info: https://www.pi4j.com/about/release-notes/
Release Notes - Pi4J

Java IO Library for the Raspberry Pi

New blog post: Starting with a Desktop Icon

Richard Norrie created an oscilloscope with Pi4J and was looking for a way to start his application with a desktop icon. Unfortunately, he encountered a few issues as the icon led to a “Java not found” error. This blog describes the steps to get this fixed.

https://www.pi4j.com/blog/2025/20250507-start-program-with-desktop-icon/

#JavaOnRaspberryPi

Starting with a Desktop Icon - Pi4J

Java IO Library for the Raspberry Pi

@pi4j

No. I say we should move important foss projects to platforms like forgejo(codeberg). This way the project isn't coupled with the github ecosystem and is more free.

What do you think?

Is GitHub still the best place to be the central point for our code, issues, and discussions?

https://github.com/Pi4J/pi4j/discussions/463

Please comment in the GitHub discussion...
Yes, I realize that's a strange place to talk about precisely this topic ;-)

Is GitHub still the best place to be the central point for our code, issues, and discussions? · Pi4J pi4j · Discussion #463

Hello The world is changing at light speed. We want to stay far away from any political discussion, but we can't ignore that relying on a big corporate system like GitHub can cause conflict in the ...

GitHub

The first V3 release of Pi4J is now available! It bumps the project to Java 21 to prepare us for more improvements with the Foreign Function and Memory API later this year with the next LTS release, Java 25.

Check the release notes for more info: https://www.pi4j.com/about/release-notes/

#JavaOnRaspberryPi @RaspberryPi #Java #OpenJDK

Release Notes - Pi4J

Java IO Library for the Raspberry Pi

One of the reasons I did this (https://johanvos.wordpress.com/2025/02/27/building-openjfx-using-jdk/) is to make it easier to create JavaFX SDKs for embedded systems. That is, Java SDKs including JavaFX. First class.
Stay tuned. #java #javafx
Building OpenJFX using JDK

Being the OpenJFX co-lead, I spend lots of time building different versions of OpenJDK for different platforms. I’m also the lead for the OpenJDK/Mobile project. Both projects use a different…

Johan's blog