[BLUEJ-1124] Update pi4j library
The Pi4j library bundled with BlueJ itself bundles an old version of "wiringpi", which doesn't recognize the processor variant as identified by newer kernels in the Stretch-based Raspbian distribution.
The following message is printed to the terminal:
{noformat} Unable to determine hardware version. I see: Hardware : BCM2835
- expecting BCM2708 or BCM2709. If this is a genuine Raspberry Pi then please report this to projects@drogon.net. If this is not a Raspberry Pi then you are on your own as wiringPi is designed to support the Raspberry Pi ONLY. {noformat}
A work-around is to set a system property which makes the Pi4j library use the system wiringpi library rather than the bundled one. In any class that uses the Pi4j code, insert a static initialiser block:
{code} static { System.setProperty("pi4j.linking", "dynamic"); } {code}
Alternatively, issue the {{System.setProperty("pi4j.linking", "dynamic");}} line in the code pad after starting BlueJ (and again after any time the VM is reset).
Issue metadata
- Issue type: Bug
- Priority: Medium