LOGIC CONTROLS CUSTOMER DISPLAY LINUX JPOS DRIVER INSTALLATION ============================================================== This zip file for our JPOS Pole Display contains drivers for Linux. Follow the following installation instructions carefully. If you have our USB interface JPOS pole display, you have to install USB driver first before installing the JPOS drivers. Models supported by our JPOS driver are: LD9900, LD9990, LD9900U, LD9900UP PD3900, PD3990, PD3900U, PD3900UP PD6900, PD6990, PD6900U LT9900, LT9990, LT9900U, LT9900UP TD3900, TD3990, TD3900U, TD3900UP Make sure that the pole display being used is one of the above models. 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 ******************************************************* * if only use USB Pole Display, skip step 2,3,4 5, go to 6, * but PD Linux USB driver need to be installed first **************************************************************** 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 f. 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, copy "Setup" folder to computer. (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 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 install.txt file. ======================END================================ Logic Controls, Inc. 355 Denton Avenue New Hyde Park, NY 11040 Tel: (516)-248 0400 Fax: (516)-248 0443 email: lci@logiccontrols.com web: www.logiccontrols.com