Closed stefanofornari closed 4 years ago
Hi @stefanofornari are you building using Java 11+? I would recommend building branch develop/1.4. If you need 64-bit, then try my fork https://github.com/eitch/pi4j/tree/develop/1.4
The issues you are having is not because of the OpenJDK but rather because of Java 11+ restrictions on those classes.
If you do test it or armhf and find issues i will gladly fix them.
Hello, I actually realized I am building with Oracle JDK 10 on Ubuntu. With Java 11, develop/1.4 builds but with tests failing. I guess this is not good ... :( Looking at the code, I see the offending classes have been removed, so it builds with Java 10 too.
I am not sure I understood with
If you do test it or armhf and find issues i will gladly fix them.
Is there a test suit? you mean run it on a Raspberry? let me know, I'll be happy to help.
Yes, i do mean running on a RPi. I have not run the tests, but just used the codebase extensively in my projects without issues at the moment. I do use a reduced set of functionality: I2C and GPIOs. With GPIOs i register for events on inputs and write outputs and have not seen any issues yet.
Ok, I will give it a try and let you know if I notice any issues. In my project I am using pi4j just to read an input pin, so not extensive testing.
Hi, for the purpose I had it works. It basically listen to incoming events from a PIR sensor.
(see https://github.com/stefanofornari/falco for details)
The master
branch and release/1.2
require building using JDK 1.8. Not just the compiler version flags, but the actual JDK 1.8 installed. Pi4J v1.4 and newer add support building on newer JDKs.
When building on OpenJDK (master and 1.2), the following errors are thrown:
I guess it has to do with the fact that OpenJDK misses some internal sun packages.
Any chances this gets fixed?