NordicID / nur_sdk

NUR SDK docs and libraries for various platforms
12 stars 19 forks source link

Problems with serial transport and windows with Java11 #20

Closed chkrauss closed 4 years ago

chkrauss commented 4 years ago

Does NUR API has a hard dependency to rxtx? Rxtx has problems with Java11 (that's why we replaced it in our application with jSerialComm). The examples are working with Java8 but not Java11. In Java 11 it crashes:

A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180005b00, pid=3820, tid=3968 JRE version: OpenJDK Runtime Environment (Zulu11.39+15-CA) (11.0.7+10) (build 11.0.7+10-LTS) Java VM: OpenJDK 64-Bit Server VM (11.0.7+10-LTS, mixed mode, tiered, compressed oops, g1 gc, windows-amd64) Problematic frame: C [rxtxSerial.dll+0x5b00]

I have a "NORDIC ID STIX" here, that is connected via USB. The virtual COM-port connected by rxtx is the only way this device can be used or is there any workaround?

chkrauss commented 4 years ago

Ok, meanwhile i saw the Transportation-classes. This way rxts can be replaced by an own implementation.