I have run the following to install the RXTX libraries in Ubuntu x86 13.04.
I am using Netbeans and have added the RXTXComm.jar as a library to my application.
The code still flags the error of not being able to import the following:
import gnu.io.CommPort;
import gnu.io.CommPortIdentifier;
import gnu.io.SerialPort;
librxtxSerial.so is in these locations:
/usr/lib/jni/librxtxSerial.so
/usr/lib/jvm/java-7-oracle/jre/lib/i386/librxtxSerial.so
I have added a file to /etc/ld.so.conf.d/rxtx.conf which contains the line:
/usr/lib/jni/
I then ran sudo ldconfig.
I continue to get the java import issues in netbeans ? Any ideas?
也许PureJavaComm是更好的库-它不使用本机库。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.