First call CommPortIdentifier.getPortIdentifiers() ,This can lead to repeated calls,because CommPortIdentifier.java static block It will also be called once CommPortIdentifier.getPortIdentifiers().
I think the this.testNativeCode(); in the NativeResource.javainJarLoad(String name) method should be deleted.
First call CommPortIdentifier.getPortIdentifiers() ,This can lead to repeated calls,because CommPortIdentifier.java static block It will also be called once CommPortIdentifier.getPortIdentifiers(). I think the
this.testNativeCode();
in theNativeResource.java
inJarLoad(String name)
method should be deleted.CommPortIdentifier.java
..... NativeResource.java