I have a B4J application that has been running fine on Ubuntu under Java 8 (for various reasons I HAVE to use Java 8) using jSerial v1.31
I just updated jSerial to v1.40 and am getting the following error:
The same jar works FINE under Windows.
I can always revert back to v1.31 but am just curious as to why this issue happens under Linux and not Windows. I've never had any issues with compatibility between jars run on windows v/s Linux using the jSerial library assuming that the JRE is the same - Java8. So I'm wondering what's different in this latest version of jSerial ??
BTW ... I did also update jCore to v10.31 but I don't think this is the cause of it. I am using B4J v10.30
I just updated jSerial to v1.40 and am getting the following error:
Error:
main._openserialport (java line: 924)
java.lang.UnsatisfiedLinkError: Could not load the jssc library: Couldn't load library library jssc
at jssc.SerialNativeInterface.<clinit>(SerialNativeInterface.java:126)
at jssc.SerialPortList.<clinit>(SerialPortList.java:49)
at anywheresoftware.b4j.serial.Serial.ListPorts(Serial.java:80)
at b4j.example.main._openserialport(main.java:924)
at b4j.example.main$ResumableSub_WaitForSerialOpen.resume(main.java:2513)
at b4j.example.main._waitforserialopen(main.java:2486)
at b4j.example.main._appstart(main.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:117)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:104)
at b4j.example.main.main(main.java:28)
The same jar works FINE under Windows.
I can always revert back to v1.31 but am just curious as to why this issue happens under Linux and not Windows. I've never had any issues with compatibility between jars run on windows v/s Linux using the jSerial library assuming that the JRE is the same - Java8. So I'm wondering what's different in this latest version of jSerial ??
BTW ... I did also update jCore to v10.31 but I don't think this is the cause of it. I am using B4J v10.30
Last edited: