I need to ask you all a question
I am trying to work out how to pull in some Java Drivers into my EPoS application
The Demo I was reading said I need to do this
import "jpos.JposException"
import "jpos.POSPrinter"
import "jpos.util.JposPropertiesConst"
import "java.time.Duration"
import "java.time.Instant"
But When I try it says Missing As and the cursor is at the end of the first Line
This is what I am trying to run
Dim f As File = New File("/algPoS/algPoS.xml")
System.setProperty(JposPropertiesConst.JPOS_POPULATOR_FILE_PROP_NAME, f.getAbsolutePath());
/ / System.getProperties().list(System.out);
FiscalPrinter fiscalPrinter = New FiscalPrinter();
'This will print a recpit to the PoS printer via the JavaPoS Drivers
POSPrinterControl113 printer = (jpos.POSPrinterControl113) New POSPrinter();
CashDrawerControl113 drawer = (CashDrawerControl113) New CashDrawer();
Try
printer.open("POSPrinter")
printer.claim(1000)
printer.setDeviceEnabled(True)
Catch (Exception e)
System.err.println("Printer deactivated " + e.getMessage())
printerdisabled = True
drawerdisabled = True
Return
End Try
Try
drawer.open("CashDrawer")
drawer.claim(100)
drawer.setDeviceEnabled(True)
Catch (Exception e)
System.out.println("Cashdrawer deactivated: " + e.getMessage())
drawerdisabled = True
Return
End Try
This is a JavaPoS Interface (allows me to talk to ANY printer from any manufacturer as long as they have JavaPoS Drivers for it and I don't need to know how to program it as the JavaPoS does that for me)
If I can get this to work I can add so meany new features to my application(s) and have some of my old trusted functions back (like Cash drawer status)
Anyone have any idea how I can get this small section to work I would be greatful.