
Bematech / Logic Controls Customer Display JPOS Driver for Linux Kernel 2.4.*.*
===============================================================================


This package contains Logic Controls customer display JPOS drivers 
for Linux. 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
========================


1. Install JDK.
	(1) Download the jdk for linux from java.sun.com.
	(2) Install it.
	(3) Set the environment variables.
		Suppose JDK version is J2sdk1.4.2 and was installed at 
		"/usr/java/J2sdk1.4.2".If the JDK version is different,
		make sure change the JDK version number to match the 
		version number in your computer.
		a. open vi, and edit "/root/.bash_profile
		b. add following information.
	export JAVA_HOME=/usr/java/J2sdk1.4.2
	export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar
	export PATH=.:$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin


***** Note **********************************
For USB Pole Display, skip step 2,3,4 & 5, 
install the USB driver and then go to step 6
*********************************************

2. Installing Sun's comm.jar.
	(1)  This comm.jar is extracted from the x86 Solaris version of commapi.
	     This x86 Solaris version of commapi was obtained from
	     http://java.sun.com/products/javacomm/index.html
	(2)  Copy this comm.jar to "/usr/java/j2sdk1.4.2/jre/lib/ext/comm.jar"

3. Install Installing javax.comm.properties.
	(1)  Edit javax.comm.properties file.
		javax.comm.properties needs the following text in it:
		Driver=gnu.io.RXTXCommDriver
	(2)  Copy it to "/usr/java/j2sdk1.4.2/jre/lib".
	
4.Install RXTX.
	There are two method to install rxtx.
	(1). Using the source code to install.
		a. Extract the rxtx-2.0.5.tar.gz to /home/rxrx-2.0.5
		b. cd /home/rxtx-2.0.5
		c. ./configure
		d. make install
	         Install rxtx is finished.
	(2) Copy all released file to proper path.
               	a. Copy librxtxSerial-2.0.5.so,librxtxSerial.la, librxtxParallel-2.0.5.so 
		   and librxtxParallel.la to "/usr/java/j2sdk1.4.2/jre/lib/$(ARCH)/"
		Note: $(ARCH) is your PC's architecture.e.g. i386
		b. Make new link file.
		    The command is following:
			cd /usr/java/j2sdk1.4.2/jre/lib/i386/			
			ln -s librxtxSerial-2.0.5.so librxtxSerial.so
			ln -s librxtxParallel-2.0.5.so librxtxParallel.so
		c. Copy jcl.jar to "/usr/java/j2sdk1.4.2/jre/lib/ext/"
		
5. The result after all settings.
	Files:
			/usr/java/j2sdk1.4.2/jre/lib/ext/jcl.jar
			/usr/java/j2sdk1.4.2/jre/lib/ext/comm.jar
			/usr/java/j2sdk1.4.2/jre/lib/$(ARCH)/librxtxSerial-2.0.5.so.
			/usr/java/j2sdk1.4.2/jre/lib/$(ARCH)/librxtxParallel-2.0.5.so.
			/usr/java/j2sdk1.4.2/jre/lib/$(ARCH)/librxtxSerial.la
			/usr/java/j2sdk1.4.2/jre/lib/$(ARCH)/librxtxParallel.la
			/usr/java/j2sdk1.4.2/jre/lib/javax.comm.properties	

6. Install LC Jpos, unzip zip file to a directory.
	(1) Copy all LC Jpos files to "/home/lcjpos".
	(2) Add all jar file to CLASSPATH.
		a. open vi , edit /root/.bash_profile
		b.Add following line to it.
	export LD_LIBRARY_PATH=/home/lcjpos:$LD_LIBRARY_PATH
	export LC_HOME=	/home/lcjpos
	export CLASSPATH=$LC_HOME/jcl.jar:$LC_HOME/jcl_editor.jar:$LC_HOME/jpos17.jar:$LC_HOME/LCJpos.jar:$LC_HOME/xerces.jar:$CLASSPATH

	Check the sample ".bash_profile" for how to set environment variables.
  
7. Reboot the computer.

8. Run lcjpos test program
	java com.logiccontrols.TestApp
	Select "/dev/ttyS0" for serial port, or "Linux USB LD9" for USB port.

9.For more detail about rxtx install, please see rxtx_install.txt file.





