B4J Question PI4J Not working on Raspberry Pi Zero W

alvinmb

Member
Licensed User
Longtime User
The pi4j library has a problem identifying the processor on the zero Pi.

Looking at solutions the suggestion is that you set the linking = dynamic switch when you run the jar file.
How can you do this when using B4j and the debug. Do any options exist to modify the run command when it calls the .jar file?
the example given is:

sudo java -Dpi4j.linking=dynamic -jar
 

alvinmb

Member
Licensed User
Longtime User
I tried and this still does not resolve the problem on the Pi zero W. So the 1.2 SNAPshot does not resolve the problem on its own as reported.

When I look into the wiringPi code, file wiringPi.c (from the original repository, not the Pi4J repository), I see in the newest version that the string BCM2835 has been added because of a change in the newer kernel. So it looks like the problem is in the Pi4J library not using the latest wiringPi code.

I will continue to develop on an older Pi until this is resolved by the library owner.
 
Upvote 0
Top