java - Using Zebra's jpos sdk in Spring boot application -
the application returns error:
jpos.jposexception: service not exist in loaded jcl registry
i'm writing java application should work zebra bar code scanners. use jpos sdk. application written on spring boot in conjunction java fx. testing @ start, i'm trying list of connected devices: in main method, run java fx launcher. after that, in start java fx method, run spring. i'm trying list of devices:
scanner scannerobj = new scanner(); string defaultlogicalname = "zebrascannerusb"; scannerobj.open(defaultlogicalname);
after line, exception thrown. understand due fact program can not find jpos.xml. put in src/main/resources, , in src/main/resources/jpos/res, , in code wrote path external file:
system.setproperty(jpospropertiesconst.jpos_populator_file_prop_name, "c:"+file.separator + "program files" + file.separator + "zebra technologies" + file.separator + "barcode scanners" + file.separator + "scanner sdk" + file.separator + "jpos" + file.separator + "sample applications" + file.separator + "bin" + file.separator + "jpos.xml");
in project, specified in "project properties" in build path path native device drivers. problem? maybe missed when configuring jpos?
Comments
Post a Comment