|
Linux 下 java 串口编程(拜求大家的帮助,请大家发发善心吧)
[复制链接]
在linux下配置如下:
安装了jdk.1.6.0_10(linnux版)
安装了eclipse(linux)
然后配置环境:
EXPORT JAVA_HOME=/usr/jdk.1.6.0_10
EXPORT PATH=&JAVA_HOME/bin:&PATH
EXPORT CLASSPATH=.:&JAVA_HOME/lib/rt.jar:&JAVA_HOME/lib/tools.jar
然后用文本写了个java测试小程序,是能运行的.
现在: 我在jdk.1.6.0_10/jre/lib/ext下放了RXTXcomm.jar包.在jdk.1.6.0_10/jre/lib/i386下放了librxtxParallel.so 和librxtxSerial.so
jdk.1.6.0_10/lib下放了javax.comm.properties 并且Driver=com.sun.comm.LinuxDriver
但是运行程序时错误提示:
check_group_uucp():error testing lock file creation Error details :Permission deniedcheck_lock_status:No permission to create lock file
please see: How can i useLock Files with rxtx?in INSTALL
...
Experimental: JNI_OnLoad called
|
|