NeuronRobotics / nrjavaserial

A Java Serial Port system. This is a fork of the RXTX project that uses in jar loading of the native code.
Other
344 stars 142 forks source link

usb serial not working on droidian arm64 with java program, libNRJavaSerial.so error #233

Closed celioregoli closed 1 year ago

celioregoli commented 1 year ago

droidian@Xperia5:/media/droidian$ java -jar /home/droidian/Programmi/Analyzer/Analyzer.jar java.lang.UnsatisfiedLinkError: /tmp/libNRJavaSerial_droidian_0/libNRJavaSerial.so: /tmp/libNRJavaSerial_droidian_0/libNRJavaSerial.so: wrong ELF class: ELFCLASS32 (Possible cause: can't load IA 32 .so on a AARCH64 platform)

after battling with nrjavaserial, ubuntu bugs with nrjavaserial , and java version issues with gradle, I finally built the libNRJavaSerial.so. I searched on droidian for the file, but it only found it in the /tmp/libNRJavaSerial_droidian_0/ libNRJavaSerial.so folder, I tried to replace that but obviously it gets rewritten every time the java program is launched. I don't know how to find the right path to change the file.

i have founded 5 folder with inside libNRJavaSerial celio@Lenovo:~/nrjavaserial/src/main/c/resources/native/linux$ ls ARM_32 ARM_64 PPC x86_32 x86_64 I don't know which file is correct for my purpose. thank.

celioregoli commented 1 year ago

i found the solution here. https://groups.google.com/g/openhab/c/gOLrVigiRVo/m/bgGdaWy1lSUJ