Skip to content

ZebraDevs/JPOS-Scanner-and-Scale-Sample-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JPOS DRIVER FOR SCANNER AND SCALE

Prerequisites

  • JPOS requires JRE/JDK 1.8 (Java 8) to be installed on the target computer.
  • NetBeans 8.2
  • Zebra CoreScanner Driver for Windows/Linux

Set up the sample project in NetBeans

  1. To open the project, go to File > New Project.
  2. Select Java as the Category and Java Project with Existing Sources as the project type, then click Next.
  3. In the next dialog:
    • Set the project name to RestructuredJposSampleApp.
    • Click Browse and select the project folder location for RestructuredJposSampleApp.
    • Click Next.
  4. In the next dialog, under Source Package Folders, click Add Folder and select the src folder inside: JPOS-Scanner-and-Scale-Sample-App\RestructuredJposSampleApp Then click Finish.

Add dependencies (JAR files)

  1. Right-click RestructuredJposSampleApp and select Properties.
  2. Select the Libraries category.
  3. Click Add JAR/Folder and add the following JAR files (from your JPOS installation location) as external dependencies:
    • javaPOS114.jar
    • xercesImpl.jar
    • xml-apis.jar
    • JposLogger.jar
    • JposServiceJniScale.jar
    • JposServiceJniScanner.jar
    • JposServiceOnScale.jar
    • JposServiceOnScanner.jar
    • JposServiceScale.jar
    • JposServiceScanner.jar

Configure VM options (native library path)

In addition to setting the libraries for RestructuredJposSampleApp:

  1. Open Properties for the project.
  2. Select the Run category.
  3. 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"

Run the sample app

  1. Open Properties for the project.
  2. Select the Run category.
  3. Click Browse next to Main Class and select: JposTest.src.MultiJposSampleApp

Documentation

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.

License

MIT

About

JPOS Scanner and Scale sample application source code for Windows and Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages