Application Integration
This document covers integration of the Datalogic JavaPOS API with an application. This document assumes that Datalogic JavaPOS has already been installed using the provided installer.
Required files
In order to properly utilize Datalogic JavaPOS, a certain number of files must exist in your application's classpath or root directory. These files include configuration files and third-party libraries used by either Datalogic JavaPOS or the OMG JavaPOS reference referred to as JPOS.
Datalogic JavaPOS API
The following library files must appear in the CLASSPATH of your application in order for the Datalogic JavaPOS API to work correctly.
JavaPOS.jar
The JavaPOS.jar file is the main component of the Datalogic JavaPOS API. This file must appear in the CLASSPATH of an application.
DLRFIDLibrary.jar
The DLRFIDLibrary.jar file is the Datalogic JavaPOS RFID extension. This file must appear in the CLASSPATH of an application if Datalogic RFID devices are to be used.
jpos-dls-ext.jar
The jpos-dls-ext.jar file is the Datalogic JPOS Extensions for the Portal Scanner. This file must appear in the CLASSPATH of an application to support Datalogic Portal Scanners.
CMDFW.jar
The CMDFW.jar file is the Datalogic JavaPOS Command-line Firmware update utility. This file must appear in the CLASSPATH of an application to support command-line firmware update using Datalogic JavaPOS.
JavaPOSTest.jar
The JavaPOSTest.jar file is the Datalogic JavaPOS Test application. This file can appear anywhere on the filesystem, and is not required for the operation of the Datalogic JavaPOS API.
Configuration Files
Root Directory
The following configuration files must exist in the root directory of your application. These files will only read from the current working directory of the application. It is best practice to put these files in the folder where your application will be launched from.
brand.properties
The brand.properties file contains branding configuration for the Datalogic JavaPOS API. This file must exist in the current working directory of your application. The location of this file is not configurable.
dls.properties
The dls.properties file contains API-wide configuration settings for the Datalogic JavaPOS API. This file contains the locations of other configuration files and must appear in the current working directory of your application. The location of this file is not configurable.