Bematech / Logic Controls Customer Display JPOS Driver for Linux Kernel 2.6.x.x
===============================================================================


This package contains Logic Controls customer display JPOS drivers 
for Linux Kernel version 2.6.x.x. Follow the following installation 
instructions carefully.

If you have the USB interface pole display, install USB driver 
first before installing the JPOS drivers.


Installaton Instructions
========================


This driver is for both serial port and USB interface pole 
displays. The following steps have been tested under Xubuntu8.10 
(Kernel:2.6.27-7-generic) by using USB PD.
 
1. If you are using USB displays, please install USB PD Driver for 
   Linux first. You may download the USB PD Driver from 
      http://www.logiccontrols.com/web/sd.htm
   After installation, test PD by "./testlcpd" to see whether driver 
   works properly.


2. Install JDK/JRE

   For example (If Internet is connected),
      #apt-get install sun.java6.jdk


3. Copy jcl.jar, jcl_editor.jar, jpos19.jar, LCJpos19.jar, jpos.xml 
   and xerces.jar to your created jpos folder (this can be any folder).

   For example (if user name is lc),

       mkdir /home/lc/jpos
       cp jcl.jar /home/lc/jpos
       ..................
       cp xerces.jar /home/lc/jpos


4. Edit enviroment variables.
   Add the following new variables to the end of file. 
   Following example assumes login as root.

	(1) JAVA_HOME
 		vi /etc/bash.bashrc
		export JAVA_HOME=<Your java path>

		e.g: export JAVA_HOME=/usr/lib/jvm/java-6-sun

	(2) LC_HOME
		vi /etc/bash.bashrc
		export LC_HOME=<your jpos folder>

		e.g: export LC_HOME=/home/lc/jpos

	(3) CLASSPATH
		vi /etc/bash.bashrc
		export CLASSPATH=$LC_HOME/jpos19.jar:$LC_HOME/LCJpos19.jar:$LC_HOME/jcl.jar:$LC_HOME/jcl_editor.jar:$LC_HOME/xerces.jar:$CLASSPATH


5. Install the *.so files

	Copy libJposHook.so, and libLCUSB.so to /usr/lib folder


6. Run setup program:

	java com.logiccontrols.TestApp


7. In jpos setup program window, if you're using USB PD, 
   select "Linux USB PD" from "Port name" drop-down listbox, 
   and then click "Save" button. Finally, you can click the 
   "Open", "Claim", "Enable Device" , "Display Text", ... 
   to test JPOS.

   Please note if you are using serial port displays, the 
   port name has to be selected according to actual port being
   used.  For example, if COM1 is connected to the PD, please 
   select "/dev/ttyS0" in "Port name" drop-down listbox.



			