- JPOS requires JRE/JDK 1.8 (Java 8) to be installed on the target computer.
- NetBeans 8.2
- Zebra CoreScanner Driver for Windows/Linux
- To open the project, go to File > New Project.
- Select Java as the Category and Java Project with Existing Sources as the project type, then click Next.
- In the next dialog:
- Set the project name to RestructuredJposSampleApp.
- Click Browse and select the project folder location for RestructuredJposSampleApp.
- Click Next.
- In the next dialog, under Source Package Folders, click Add Folder and select the
srcfolder inside:JPOS-Scanner-and-Scale-Sample-App\RestructuredJposSampleAppThen click Finish.
- Right-click RestructuredJposSampleApp and select Properties.
- Select the Libraries category.
- Click Add JAR/Folder and add the following JAR files (from your JPOS installation location) as external dependencies:
javaPOS114.jarxercesImpl.jarxml-apis.jarJposLogger.jarJposServiceJniScale.jarJposServiceJniScanner.jarJposServiceOnScale.jarJposServiceOnScanner.jarJposServiceScale.jarJposServiceScanner.jar
In addition to setting the libraries for RestructuredJposSampleApp:
- Open Properties for the project.
- Select the Run category.
- Enter the following text under VM Options:
For Windows
-Djava.library.path="C:\Program Files\Zebra Technologies\Barcode Scanners\Scanner SDK\JPOS\bin"
For Linux
-Djava.library.path="/usr/lib/zebra-scanner/javapos/jni"
- Open Properties for the project.
- Select the Run category.
- Click Browse next to Main Class and select:
JposTest.src.MultiJposSampleApp
For more information about the JPOS Driver for Scanner and Scale, go to https://techdocs.zebra.com/dcs/scanners/jpos-windows/about/ or visit the forums.