At some point during 2019, the author of wiringpi, which is the native library that Pi4J was based on, stopped its development. Luckily, there is a new version of Pi4J which is now being actively developed and it works with all recent versions of Raspberry Pi. It is not backward compatible...
www.b4x.com