ZebraNativeUsbAdapter_64.dll and jdk 9


I have downloaded and used successfully the developer demo provided as part of the Zebr SDK. I'm able to print using direct usb connection from a Windows 10 PC to a Zebra ZD620 printer using the java demo application running on a jdk 1.8 runtime.
But when I try a version of java from 9 and over , the java runtime crashes. Here is what java reports:
# Java VM: OpenJDK 64-Bit Server VM (9+181, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# C [ZebraNativeUsbAdapter_64.dll+0x25be]
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
# An error report file with more information is saved as:
# D:\ivano\Met\EclipseWorkspace202109\DeveloperDemo_Desktop\hs_err_pid34584.log
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
Does Zebra SDK supports JDK over 1.8?

Submitted by SSi1 on January 10, 2022 Permalink

The Java 1.8 is supported by the Link-OS SDK for PC Java. I have the Java v1.8.0_161 installed on my Windows 10 desktop and the ZebraNativeUsbAdapter_64.dll works just fine for me. Try uninstall and reinstall the Java v1.8 to see if the issue goes away.

[Update] I've another Windows 10 PC (64-Bit) with Java v13.0.2 installed. The Developer Demo that comes with the SDK release works just fine with the ZebraNativeUsbAdapter_64.dll. Though, I don't have a PC with Java v1.9, I am pretty certain that the ZebraNativeUsbAdapter_64.dll should work with Java v1.9 too. 

[Update] The above update was wrong so to cross it out. After further investigation, it was found that the ZebraNativeUsbAdapter_64.dll will cause various exceptions with the Java that is beyond the version v1.8.0_251. You are right that we cannot use the USB direct with the ZebraNativeUsbAdapter_64.dll in JDK 9 or beyond.