good morning
I'm trying to use a third-party library to a printer.
I can not use the methods of the library. for example, call the method GetPortName, but by mistake.
Here is the structure and instructions
'Inclusion library
#AdditionalJar: StarIOPort3.1
Dim jo As JavaObject
jo.InitializeStatic ("com.starmicronics.stario.StarIOPort") 'ok load library
'error
Dim sPort As String = jo.RunMethod ("getPortName", null)
java.lang.IllegalArgumentException: expected receiver of type com.starmicronics.stario.StarIOPort, but got java.lang.Class <com.starmicronics.stario.StarIOPort>
.....
com.android.internal.os.ZygoteInit at $ MethodAndArgsCaller.run (ZygoteInit.java:1291)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1107)
at dalvik.system.NativeStart.main (Native Method)
java.lang.IllegalArgumentException: expected receiver of type com.starmicronics.stario.StarIOPort, but got java.lang.Class <com.starmicronics.stario.StarIOPort>
Here is the structure of the class
thank you very much