Код: Выделить всё
apt-get install librxtx-java
Это ошибка, которую я получаю при попытке запустить версию, скомпилированную 64-битной Java:
Код: Выделить всё
OpenJDK 64-Bit Server VM warning: You have loaded library /home/alex/MYSRT3/lib/libLinuxSerialParallel.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.
Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: /home/alex/MYSRT3/lib/libLinuxSerialParallel.so: /home/alex/MYSRT3/lib/libLinuxSerialParallel.so: wrong ELF class: ELFCLASS32 (Possible cause: can't load IA 32 .so on a AMD 64 platform)
Exception in thread "main" java.lang.UnsatisfiedLinkError: 'boolean com.sun.comm.Unix.isDevLink(java.lang.String)'
at com.sun.comm.Unix.isDevLink(Native Method)
at com.sun.comm.PathBundle.add(PathBundle.java:108)
at com.sun.comm.PlatformPortBundle.(PlatformPortBundle.java:44)
at javax.comm.CommPortIdentifier.(CommPortIdentifier.java:138)
at sport.(sport.java:29)
at srt.main(srt.java:152)
Код: Выделить всё
sudo execstack -c /home/$USER/MYSRT3/lib/libLinuxSerialParallel.so
Подробнее здесь: https://stackoverflow.com/questions/781 ... -to-64-bit