How to port Win32 application to JavaPOS

1 System introduction

  This document describes how to port Win32/Win64 application to JavaPOS. Please notice JavaPOS cannot be led to JavaPOS in Win16 or DOS. Furthermore, the routine below is mainly written for Java programmer with a certain experience.

  If users require developing based on JavaPOS, they have to install JavaPOS completely, while they also need one or more printer online. After installing JavaPOS software, first use JavaPOS configuration tools (JavaPOS_Configure.bat) to configure printer and cash drawer that can be used after the proper configuration
(Refer to “Configuration Tool Usage").

  Notice: In the case of programming based on JavaPOS, you should refer to Appendix  and know JavaPOS software compliance for JavaPOS 1.14.1.

  When programming JavaPOS, you should first know the basic conception and operation requirement of JavaPOS:

  --JavaPOS is a standard programming interface for POS peripheral.

  --JavaPOS can only operate under Win32/Win64/Linux system.

  --JavaPOS offer properties, methods and events to its own complication. JavaPOS Device Control  cannot be seen in operation. The application could control the peripheral via functioning JavaPOS Device Control  and setting properties, and return the result to it via methods back value, JavaPOS Device Control properties and events.  

2 Programming introduction

 Adding JavaPOS Device Control in project

  The first step is to add the Common JavaPOS Device Control to the project. This is done by selecting the menu item Project | Properties as below:

click "Add Library" to import jdk to project

select "JRE System Library" and click "Next"

select "Workspace default JRE" click "Finish"

 

click "Add External JARs"

select the catalog of JavaPOS and add all *.jar

click "OK" to finish

For more information , see :

Sample Program

Data Characters and Escape Sequences

Application development guide