B4J Library Updated JSSC.Jar

Discussion in 'B4J Libraries & Classes' started by techknight, Nov 23, 2018.

  1. techknight

    techknight Well-Known Member Licensed User

    I fixed and recompiled the Native DLL for JSSC which was causing Access Violation crashes when attempting to open a serial port on Windows 10 64 bit systems with newer Java versions.

    With Java 8 x64, it was hit and miss. One system crashed while another did not. x32 always worked of course.

    With the recompiled DLL, everything works with all combinations. If however, you remove the USB serial device while it is open it will crash the JVM with the same Access Violation, but I never checked this behavior before as it may have been the same previously. Regardless, that is a small price to pay when everything works fine while its open.

    Attached is a fixed jssc.jar. Put this in your Libraries folder and re-compile your App, or you can insert the DLL directly into your app's jar. Either way.

    Also note that since the build is the same version number, you MUST go into your windows user profile folder and delete the cache .jssc folder. Java likes to use this instead of whats in the Jar!!!


    Attached Files:

    • jssc.jar
      File size:
      188.4 KB
    Last edited: Nov 23, 2018
    OliverA, Chris2, Erel and 1 other person like this.
  2. techknight

    techknight Well-Known Member Licensed User

    Fixed the Access Violation on removing a USB serial device while it is open.

    Now it just silently kills the AsyncStreams by executing the error routine. The way its supposed to.

    Attached Files:

    • jssc.jar
      File size:
      188.5 KB
    OliverA, Chris2 and Erel like this.
  3. Chris2

    Chris2 Member Licensed User

    Just in case it's never been confirmed before (I think the posts above are from a few days before the first Java 11 version of B4J was released); using techKnight's jssc.jar, jSerial is working with OpenJDK11 under Windows 10 64 bit.
    Erel and inakigarm like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice