I have built an image using the layer
FROM balenalib/raspberrypi4-64-debian-openjdk:8-jdk-stretch-run . I’m running my app from the Dockerfile with a simple
java -jar myapp.jar. It starts up and runs but I’m getting an error that appears to be an incompatibility with 64bit Java. I get the following:
java.lang.UnsatisfiedLinkError: /tmp/libNRJavaSerial_root_0/libNRJavaSerial.so: /tmp/libNRJavaSerial_root_0/libNRJavaSerial.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
I’m able to run the app on raspbian running directly on my Pi’s using openjdk 8 without this error. What change do I need to make to resolve this? What other info might be useful?